src_c/joystick.c¶
The extension module pygame.joystickPygame module for interacting with joysticks, gamepads, and trackballs..
Header file: src_c/include/pygame.h
-
PyTypeObject *pgJoystick_Type¶
The Pygame joystick object type
pygame.Joystick.
-
PyObject *pgJoystick_New(int id)¶
Return a new
pygame.Joystickinstance. On failure, raise a Python exception and returnNULL.
-
int pgJoystick_GetDeviceIndexByInstanceID(int instance_id)¶
Get the device index of a joystick by a instance id. Return a device index. On failure, it returns -1.
Edit on GitHub