summaryrefslogtreecommitdiff
path: root/sdl2/bindings.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2017-11-10 12:12:07 -0500
committerDavid Thompson <dthompson@vistahigherlearning.com>2017-11-10 13:53:45 -0500
commit6a5cb8729af617937ea569512506d5a11258df95 (patch)
tree425c7f3025cfd9d90e0f984ff5ff07fd63b5ad94 /sdl2/bindings.scm
parentecdb209d374e62144defa4b80d6a1c9f46a727d1 (diff)
Add SDL_GameControllerAddMappingsFromRW binding.
* sdl2/bindings.scm (sdl-game-controller-add-mappings-from-file): New procedure. * sdl2/input/game-controller.scm (load-game-controller-mappings!): New procedure.
Diffstat (limited to 'sdl2/bindings.scm')
-rw-r--r--sdl2/bindings.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/sdl2/bindings.scm b/sdl2/bindings.scm
index dd0a619..180f887 100644
--- a/sdl2/bindings.scm
+++ b/sdl2/bindings.scm
@@ -1071,6 +1071,9 @@ RETURN-TYPE and accept arguments of ARG-TYPES."
(define-public SDL_CONTROLLER_BUTTON_DPAD_RIGHT 14)
(define-public SDL_CONTROLLER_BUTTON_MAX 15)
+(define-foreign sdl-game-controller-add-mappings-from-rw
+ int "SDL_GameControllerAddMappingsFromRW" (list '* int))
+
(define-foreign sdl-game-controller-add-mapping
int "SDL_GameControllerAddMapping" '(*))