garmi_parti.peripherals package¶
Submodules¶
garmi_parti.peripherals.joystick module¶
- class garmi_parti.peripherals.joystick.SerialJoysticks¶
Bases:
objectSerial interface for custom joystick.
- handle_changes(changes)¶
Called periodically with a list of button state changes. Override this function to attach functionality to the buttons.
- read_id(port, lines_to_ignore=3)¶
Tries to read the joystick id from the given com port.
- start()¶
Finds all connected joystick devices and reads from them. Changes in the button states are processed in
handle_changes().- Return type: