GameInput backend for SDL (Gamepad-only for now)

This commit is contained in:
Nikita Krapivin 2024-01-25 01:26:01 +05:00 committed by Sam Lantinga
parent 7ed1f3554d
commit 534f753e20
8 changed files with 674 additions and 3 deletions

View file

@ -55,6 +55,9 @@ static SDL_JoystickDriver *SDL_joystick_drivers[] = {
#ifdef SDL_JOYSTICK_RAWINPUT /* Before WINDOWS_ driver, as WINDOWS wants to check if this driver is handling things */
&SDL_RAWINPUT_JoystickDriver,
#endif
#ifdef SDL_JOYSTICK_GAMEINPUT /* Before WINDOWS_ driver, as GameInput takes priority over XInputOnGameInput for GDK platforms */
&SDL_GAMEINPUT_JoystickDriver,
#endif
#if defined(SDL_JOYSTICK_DINPUT) || defined(SDL_JOYSTICK_XINPUT) /* Before WGI driver, as WGI wants to check if this driver is handling things */
&SDL_WINDOWS_JoystickDriver,
#endif