From 0ec5bb4e6d28d9f7279b7660e3773d69e9545f44 Mon Sep 17 00:00:00 2001 From: diddily Date: Mon, 25 Jul 2022 10:37:23 -0400 Subject: [PATCH] Add missing controller events to `SDL_GameControllerEventState()` Events to handle controller touchpads and sensors were added to the library but not added in `SDL_GameControllerEventState()`. This change adds the missing events. --- src/joystick/SDL_gamecontroller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index c5c6d29be..2c0875c9f 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/src/joystick/SDL_gamecontroller.c @@ -2737,6 +2737,7 @@ SDL_GameControllerEventState(int state) const Uint32 event_list[] = { SDL_CONTROLLERAXISMOTION, SDL_CONTROLLERBUTTONDOWN, SDL_CONTROLLERBUTTONUP, SDL_CONTROLLERDEVICEADDED, SDL_CONTROLLERDEVICEREMOVED, SDL_CONTROLLERDEVICEREMAPPED, + SDL_CONTROLLERTOUCHPADDOWN, SDL_CONTROLLERTOUCHPADMOTION, SDL_CONTROLLERTOUCHPADUP, SDL_CONTROLLERSENSORUPDATE, }; unsigned int i;