From 6023dce3409183eb48fa0679299b1dc771f954bd Mon Sep 17 00:00:00 2001 From: ZakatTeamI2P Date: Mon, 30 Mar 2026 19:03:17 +0400 Subject: [PATCH] eventthread.h changes for SDL3 --- src/eventthread.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/eventthread.h b/src/eventthread.h index 226461e..51ac9f1 100644 --- a/src/eventthread.h +++ b/src/eventthread.h @@ -27,11 +27,11 @@ #include "sdl-util.h" #include "keybindings.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include @@ -49,8 +49,8 @@ class EventThread public: struct ControllerState { - int axes[SDL_CONTROLLER_AXIS_MAX]; - bool buttons[SDL_CONTROLLER_BUTTON_MAX]; + int axes[SDL_GAMEPAD_AXIS_COUNT]; + bool buttons[SDL_GAMEPAD_BUTTON_COUNT]; }; struct JoyState @@ -78,7 +78,7 @@ public: FingerState fingers[MAX_FINGERS]; }; - static uint8_t keyStates[SDL_NUM_SCANCODES]; + static uint8_t keyStates[SDL_SCANCODE_COUNT]; static ControllerState gcState; static JoyState joyState; static MouseState mouseState;