Tools to get Joystick events.
Project description
Python joystick event handler.
Simple Example
from pyjoystick.sdl2 import Key, Joystick, run_event_loop
def print_add(joy):
print('Added', joy)
def print_remove(joy):
print('Removed', joy)
def key_received(key):
print('Key:', key)
run_event_loop(print_add, print_remove, key_received)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyjoystick-0.0.2.tar.gz
(546.8 kB
view hashes)