Class SDL.Joystick
- Description
Represents a joystick, gamepad or other similar input device attached to the system.
You must call SDL.init() with the SDL.INIT_JOYSTICK flag to enable joystick support.
All index numbers count from
0
.All SDL.Joystick methods throw an exception if they are called on an uninitialized object.
- Method create
SDL.Joystick SDL.Joystick(int device_index)
- Description
Opens the given joystick device for use.
- Parameter device_index
The nth joystick device available to the system.
- See also