From 0396f79c15b0e3f76d12695201839337c3b10046 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Tue, 31 Dec 2019 01:00:30 +0100 Subject: [PATCH] Fix in_mouse 0 and in_joystick 0 not working --- source/common/inputstate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/inputstate.cpp b/source/common/inputstate.cpp index e46bbd90c..aa02c8065 100644 --- a/source/common/inputstate.cpp +++ b/source/common/inputstate.cpp @@ -99,10 +99,10 @@ void CONTROL_GetInput(ControlInfo* info) { memset(info, 0, sizeof(ControlInfo)); - if (in_mouse) + if (in_mouse >= 0) inputState.GetMouseDelta(info); - if (in_joystick) + if (in_joystick >= 0) { // Handle joysticks/game controllers. float joyaxes[NUM_JOYAXIS];