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.
#include <class_joystick_1_1_joystick.h>
Public Member Functions |
|
__init__ () | |
sendMessage () | |
Sends a message. |
|
OnJoystick () |
Joystick.Joystick.__init__ | ( | ) |
Joystick.Joystick.sendMessage | ( | ) |
Sends a message.
It can be called one of two ways: 1) sender.sendMessage( messageId, messageData ), where:
An optional keyword argument, requestUndo, specifies whether undo will be enabled for this message. By default, requestUndo is set to True,
Returns the sent message, or None if the message could not be created.
Reimplemented from MessagingAPI.MessageSender.
Joystick.Joystick.OnJoystick | ( | ) |