input: game-controller: Fix bug where right-y axis is invalid.
authorDavid Thompson <dthompson2@worcester.edu>
Sun, 6 Jan 2019 04:28:29 +0000 (23:28 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Sun, 6 Jan 2019 04:28:29 +0000 (23:28 -0500)
* sdl2/input/game-controller.scm (axis-symbol->int): Fix typo!

sdl2/input/game-controller.scm

index 120cc53..ba5aee1 100644 (file)
@@ -109,7 +109,7 @@ associated with ."
     ('left-x ffi:SDL_CONTROLLER_AXIS_LEFTX)
     ('left-y ffi:SDL_CONTROLLER_AXIS_LEFTY)
     ('right-x ffi:SDL_CONTROLLER_AXIS_RIGHTX)
-    ('right-x ffi:SDL_CONTROLLER_AXIS_RIGHTY)
+    ('right-y ffi:SDL_CONTROLLER_AXIS_RIGHTY)
     ('trigger-left ffi:SDL_CONTROLLER_AXIS_TRIGGERLEFT)
     ('trigger-right ffi:SDL_CONTROLLER_AXIS_TRIGGERRIGHT)))