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.

- My PC has a PS2 mouse. Do I need an entry /dev/mouse to point to the 
device
    file for this? (The device file is /dev/input/mice)
    (The FAQ says I need /dev/mouse if I'm using a serial mouse. What about
    a PS2 mouse?)
    
    If I need to specify the protocol in ~/.directfbrc, what protocol 
should I
    use? The X11 config has:

        Option "Protocol" "IMPS/2"
   
    What is the corresponding DirectFB mouse protocol?
    
    (The options are ms|ms3|mouseman|mousesystems)

- I can't get keyboard input working, and have no idea what i'm doing wrong.
Can someone explain how directfb reads the keyboard? Does it use a 
/dev/ttyx file?

I do dfb->GetInputDevice (dfb, DIDID_KEYBOARD, &keyboard), and then
keyboard->GetKeyState (keyboard, DIKI_XXXX, &state) - but don't get any
keys pressed. (This is the technique shown in tutorial example "Moving a 
sprite with the cursory keys")

- what do I have to do to get a mouse cursor on the screen? If the mouse is
correctly configured, will the mouse cursor show up automagically? A 
mouse X11 style 'X' shaped
cursor does display - I presume that when I get the mouse input working, 
it will control this
cursor.


Regards
Colin


_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to