platypush.backend.joystick.linux

class platypush.backend.joystick.linux.JoystickLinuxBackend(device: str = '/dev/input/js0', *args, **kwargs)[source]

This backend intercepts events from joystick devices through the native Linux API implementation.

It is loosely based on https://gist.github.com/rdb/8864666, which itself uses the Linux kernel joystick API to interact with the devices.

Triggers:

__init__(device: str = '/dev/input/js0', *args, **kwargs)[source]
Parameters

device – Joystick device to monitor (default: /dev/input/js0).

run()[source]

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