Next: , Previous: , Up: Input   [Contents][Index]


3.3.3 Joysticks

(use-modules (sdl2 input joystick))
Procedure: num-joysticks

Return the current number of connected joystick devices.

Procedure: open-joystick device-index

Return a joystick object for the physical joystick device associated with device-index.

Procedure: close-joystick joystick

Close joystick.

Procedure: joystick-instance-id joystick

Return the instance id of joystick.

Procedure: joystick-power-level joystick

Return the symbolic battery power level for joystick, either unknown, empty, low, medium, full, or wired.

Procedure: joystick-num-axes joystick

Return the number of axes for joystick.

Procedure: joystick-num-balls joystick

Return the number of balls for joystick.

Procedure: joystick-num-buttons joystick

Return the number of buttons for joystick.

Procedure: joystick-num-hats joystick

Return the number of hats for joystick.