Ville Syrjälä wrote:
Since sending the questions I have got event driven keyboard and mouse input to work. I still don't know whyOn Thu, Apr 19, 2007 at 03:24:58PM +1000, Colin Newell wrote:I am new to using DirectFB. I have been able to get basic programs working doing output. However I can't get mouse and keyboard input working. the example that does non-event driven keyboard access doesn't appear to work. What is the linuxinput driver? This is not so important now that the mouse and keyboard are working, but what doThe ps2mouse driver should attempt to use /dev/psaux, /dev/misc/psaux or /dev/input/mice. However I recommend you try the linuxinput driver instead of ps2mouse. It will use the /dev/input/eventX device. I need to do to use the linuxinput driver? Yes the dfbinfo example showed this for the mouse and kbd: Input (00) Keyboard (primary keyboard) Type: KEYBOARD Caps: KEYS Input (01) IMPS/2 Mouse (primary mouse) Type: MOUSE Caps: AXES BUTTONS Max. Axis: 2 Max. Button: 2 And the df_input example worked. The only small question mark is that I noticed that the program can get well behind the mouse if there is a lot of movement, as if the drawing of the mouse position crosslines could not keep up with the mouse movement events, which kind of surprised me. Before I was running the directfb programs I had been running an X-server, but stopped it. After I stop the X-server, then from then on the X-server's mouse cursor shows up on the screen when a DirectFB program is run - it always shows up in the same position and doesn't move with the mouse. I tried a few things to clear it but couldn't find anything that worked. DirectFB's mouse cursor is displayed in some of the test examples, and looks, as you say, like a water droplet. Regards and thanks, Colin |
_______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
