From 9a9d2cd0586d1e959e56287d329bf7ac91b955eb Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 31 Aug 2021 18:12:53 +0200 Subject: [PATCH] Fix disabling gamepad not blocking all gamepad inputs --- src/Components/Modules/Gamepad.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Components/Modules/Gamepad.cpp b/src/Components/Modules/Gamepad.cpp index 4e4adecb..3bab8d8a 100644 --- a/src/Components/Modules/Gamepad.cpp +++ b/src/Components/Modules/Gamepad.cpp @@ -1418,6 +1418,9 @@ namespace Components void Gamepad::IN_GamePadsMove() { + if (!gpad_enabled.get()) + return; + GPad_UpdateAll(); const auto time = Game::Sys_Milliseconds();