get_joysticks Function

Defined in pyglet.input

get_joysticks(display=None)

Get a list of attached joysticks.

Parameters:display (Display) – The display device to query for input devices. Ignored on Mac OS X and Windows. On Linux, defaults to the default display device.
Return type:list of Joystick

Previous topic

get_devices Function

Next topic

get_tablets Function