From 8feeee61037b23fd0cb22d2f035f6ebfa0c76e32 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Fri, 12 Apr 2024 20:02:16 +0200 Subject: Input: only check joystick input if a joystick actually exists --- src/frontend/qt_sdl/Input.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/frontend/qt_sdl/Input.cpp b/src/frontend/qt_sdl/Input.cpp index 27c42e9..7ebd7e2 100644 --- a/src/frontend/qt_sdl/Input.cpp +++ b/src/frontend/qt_sdl/Input.cpp @@ -209,16 +209,22 @@ void Process() } JoyInputMask = 0xFFF; - for (int i = 0; i < 12; i++) - if (JoystickButtonDown(Config::JoyMapping[i])) - JoyInputMask &= ~(1<