On 03 May 2003 13:27:01 +0100, Sonny Dawn-Hiscox wrote: > > I am a final year CS student at the uni of Manch. and I've got to know > fvwm for my final project, I was not acquainted with it previously. I > have created a new module that I called FvwmGamePort designed to handle > I/O from a gamepad and attach some fvwm functionality to it. > > I was just wondering if anyone had any comments on a problem that I'm > sure you're all aware of? > > I was controling the cursor by calling "CursorMove" but when I call a > menu, the single-threaded design of fvwm will not allow me to continue > manipulating the cursor... > > Does anyone have any thoughts on this matter? > The project is finished, time-wise but I was just thinking that if there > is a way of configuring fvwm to create a new instance of the GamePort > module when a menu is called then maybe my project can be left open for > development using some kind of notion of recursion??? What do you think?
Yes, you can't control cursor when internal menu is open unless you change the core code. Moreover, the module messages are not processed until a menu is closed. So, if you still want to use menus, you should use external menus. For example create GTK menus using FvwmGtk (I think GTK does not lock cursor when a menu is open, but you should check this). Or use FvwmButtons to create something similar to a menu: *FvwmButtons-GamePortMenu: (Title "line 1", Action "command 1") *FvwmButtons-GamePortMenu: (Title "line 2", Action "command 2") Of course, I guess the whole idea is to support gamepad controls in the internal menus... I don't think there is a way currently. > This problem also lead me to abandon dynamic reconfiguration for this > module... I think this may be solved, but you may need an adequate GUI for this. Probably you may solve this using dynamical FvwmButtons configuration, but I can't say anything concrete since I didn't see the requirements. BTW, any way to read the FvwmGamePort man page? Regards, Mikhael. -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]