Fix in_mouse 0 and in_joystick 0 not working

This commit is contained in:
Magnus Norddahl 2019-12-31 01:00:30 +01:00
parent e4caea2f95
commit 0396f79c15

View file

@ -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];