platypush.message.event.joystick

class platypush.message.event.joystick.JoystickEvent(code, state, *args, **kwargs)[source]

Event triggered upon joystick event

__init__(code, state, *args, **kwargs)[source]
Parameters:
  • code (str) – Event code, usually the code of the source key/handle
  • state (int) – State of the triggering element. Can be 0/1 for a button, -1/0/1 for an axis, a discrete integer for an analog input etc.