From 258fd75b39fcbe8ea1782cbbbe3bed37a2c643b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ri=C4=8Dardas=20Barkauskas?= Date: Wed, 21 Oct 2009 00:12:00 +0300 Subject: [PATCH] dinput: Fix counting non mapped axis as pov. --- dlls/dinput/joystick.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/dinput/joystick.c b/dlls/dinput/joystick.c index 489342e1b6a..84e45c9ddbd 100644 --- a/dlls/dinput/joystick.c +++ b/dlls/dinput/joystick.c @@ -549,7 +549,9 @@ HRESULT setup_dinput_options(JoystickGenericImpl *This, const int *default_axis_ { This->axis_map[i] = default_axis_map[i]; tokens = default_axis_map[i]; - if (tokens >= 0 && tokens < 8) + if (tokens < 0) + continue; + if (tokens < 8) axis++; else if (tokens < 15) { -- 2.11.4.GIT