From 7508e7592883c49a5a0672d4fd9d9ae69c0b1ab0 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 1 Oct 2022 21:30:08 -0400 Subject: bindings: Add additional controller button identifiers. --- sdl2/bindings.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sdl2/bindings.scm b/sdl2/bindings.scm index 954aa8b..c623815 100644 --- a/sdl2/bindings.scm +++ b/sdl2/bindings.scm @@ -1288,7 +1288,13 @@ RETURN-TYPE and accept arguments of ARG-TYPES." (define-public SDL_CONTROLLER_BUTTON_DPAD_DOWN 12) (define-public SDL_CONTROLLER_BUTTON_DPAD_LEFT 13) (define-public SDL_CONTROLLER_BUTTON_DPAD_RIGHT 14) -(define-public SDL_CONTROLLER_BUTTON_MAX 15) +(define-public SDL_CONTROLLER_BUTTON_MISC1 15) +(define-public SDL_CONTROLLER_BUTTON_PADDLE1 16) +(define-public SDL_CONTROLLER_BUTTON_PADDLE2 17) +(define-public SDL_CONTROLLER_BUTTON_PADDLE3 18) +(define-public SDL_CONTROLLER_BUTTON_PADDLE4 19) +(define-public SDL_CONTROLLER_BUTTON_TOUCHPAD 20) +(define-public SDL_CONTROLLER_BUTTON_MAX 21) (define-foreign sdl-game-controller-add-mappings-from-rw int "SDL_GameControllerAddMappingsFromRW" (list '* int)) -- cgit v1.2.3