platypush.backend.joystick

class platypush.backend.joystick.JoystickBackend(device, *args, **kwargs)[source]

This backend will listen for events from a joystick device and post a JoystickEvent whenever a new event is captured.

Triggers:

Requires:

  • inputs (pip install inputs)
__init__(device, *args, **kwargs)[source]
Parameters:device – Path to the joystick device (e.g. /dev/input/js0)
run()[source]

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.