From 04cabaa43ec87ba686804e72fc02d4927986f3e4 Mon Sep 17 00:00:00 2001 From: Adrien Moulin Date: Sun, 10 Jul 2022 14:31:49 +0200 Subject: [PATCH] Don't poll for joystick if none configured --- src/qt/sdl_joystick.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/sdl_joystick.cpp b/src/qt/sdl_joystick.cpp index 0e7bfd619..ab72145c3 100644 --- a/src/qt/sdl_joystick.cpp +++ b/src/qt/sdl_joystick.cpp @@ -107,6 +107,8 @@ void joystick_process() { int c, d; + if (!joystick_type) return; + SDL_JoystickUpdate(); for (c = 0; c < joysticks_present; c++) {