Commit 258fd75b authored by Ričardas Barkauskas's avatar Ričardas Barkauskas Committed by Alexandre Julliard

dinput: Fix counting non mapped axis as pov.

parent e1903dc6
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment