Keyboard control through the Joystick Driver/API
I'm attempting to modify the Linux SDK for the ARDrone quad-rotor helicopter. The SDK provides example C code for flying the drone with a number of gamepads, and supposedly a keyboard, although keyboard flight has been non-functioning for may releases. The easiest way for me to fix this would be to treat the keyboard as if it were a joystick through the linux joystick driver and modify the provided joystick control code in C accordingly. I was wondering if it would be possilbe to treat my keyboard as a joystick, and if so how to determine the fields of js_event (i.e. type, number, value etc) for a keypress.
Thanks for any and all help,