|
dictionary | joysticks = {} |
|
dictionary | callbacks = {} |
|
§ __init__()
def Joystick.JoystickRegistry.__init__ |
( |
|
self, |
|
|
|
scheduler = None |
|
) |
| |
initialize the JoystickRegistry object
@param scheduler
§ addCallback()
def Joystick.JoystickRegistry.addCallback |
( |
|
self, |
|
|
|
name, |
|
|
|
callback |
|
) |
| |
add a callback to receive events from joysticks
@param name str
@param callback function
@return bool
§ GetInstance()
def Joystick.JoystickRegistry.GetInstance |
( |
|
scheduler = None | ) |
|
|
static |
statically get a shared instance of this class
@return JoystickRegistry
§ hasCallback()
def Joystick.JoystickRegistry.hasCallback |
( |
|
self, |
|
|
|
name |
|
) |
| |
check if a callback exists
§ IsAvailable()
def Joystick.JoystickRegistry.IsAvailable |
( |
| ) |
|
|
static |
statically check if a joystick is available
@return bool
§ removeCallback()
def Joystick.JoystickRegistry.removeCallback |
( |
|
self, |
|
|
|
name |
|
) |
| |
remove a callback if it exists
@param name str
@return bool
§ scan()
def Joystick.JoystickRegistry.scan |
( |
|
self | ) |
|
check for joysticks, initialize Joystick class when found
The documentation for this class was generated from the following file: