(use-modules (sdl2 input game-controller))
Load game controller mapping from file and return the number of mappings added this way.
See https://raw.github.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt for a community maintained controller mapping file.
Return a game controller object for the physical joystick device associated with the joystick-index.
Close controller.
Close controller.
Return #t
if controller is currently in use.
Return the underlying joystick object associated with controller.
Return the human readable name for controller.
Return a number in the range [-32768, 32767] representing the current state of axis on controller.
axis may be one of the following symbols:
left-x
left-y
right-x
right-y
trigger-left
trigger-right
Return #t
if button is pressed on controller.
button may be one of the following symbols:
a
b
x
y
back
guide
start
left-stick
right-stick
left-shoulder
right-shoulder
dpad-up
dpad-down
dpad-left
dpad-right
Return #t
if joystick-index is a valid game controller index.