A class for creating gamepad/joystick input.
Methods
Create a gamepad/joystick input.
Parameters : | gamepad_id : int
track_button_events : bool, optional
track_motion_events : bool, optional
|
---|
Clear gamepad events from cue.
Get current axis state.
Parameters : | axis : int
|
---|
Get current ball state.
Parameters : | ball : int
|
---|
Get current button state.
Parameters : | button : int
|
---|
Get the number of gamepads/joysticks connected to the system.
Get current hat state.
Parameters : | hat : int
|
---|
Get the number of axes.
Get the number of balls.
Get the number of buttons.
Get the number of hats.
Getter for id.
Getter for joystick.
Getter for logging.
Getter for name.
Set logging of this object on or off
Parameters : | onoff : bool
|
---|
Notes
See also design.experiment.set_log_level fur further information about event logging.
Getter for track_button_events.
Getter for track_motion_events.
Wait for gamepad button press.
Returns the found button and the reaction time.
Parameters : | buttons : int or list, optional
duration : int, optional
|
---|---|
Returns : | button : int
rt : int
|