From 25ecbc3a8dae5c92f1d9ccd0b37beb5f05748cd0 Mon Sep 17 00:00:00 2001 From: atsb <44937323+atsb@users.noreply.github.com> Date: Wed, 7 Aug 2024 19:01:23 +0200 Subject: [PATCH] Fixing SDL3 --- src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 260d625..570b3de 100644 --- a/src/main.c +++ b/src/main.c @@ -1171,7 +1171,8 @@ static void handle_keypress(int key, int unicode, int press) void CheckForWindowsMessages() { SDL_Event event; - int x, y, buttons, wantmouse; + float x, y, wantmouse; + int buttons; GotAnyKey = 0; DebouncedGotAnyKey = 0; @@ -1273,7 +1274,8 @@ void CheckForWindowsMessages() } if (GotJoystick) { - int numbuttons; + float numbuttons; + int x; SDL_UpdateJoysticks();