Simple little class to enable a game controller.
Simply map the buttons on the gamepad to keyboard events. When a joystick event is caught just create the approrpiate keyboard event and dispatch it.
Currently only supports one connected controller.
Public Member Functions |
|
| __init__ () | |
| sendMessage () | |
| OnJoystick () | |
| Joystick.Joystick.__init__ | ( | ) |
| Joystick.Joystick.sendMessage | ( | ) |
| Joystick.Joystick.OnJoystick | ( | ) |