Commit 9736a36f authored by Brendan McGrath's avatar Brendan McGrath Committed by Alexandre Julliard

winebus.sys: Use JoystickNumButtons for button_count.

parent 72298934
......@@ -857,7 +857,7 @@ static void try_add_device(SDL_JoystickID index)
id, vid, pid, version, debugstr_w(serial));
axis_count = pSDL_JoystickNumAxes(joystick);
button_count = pSDL_JoystickNumAxes(joystick);
button_count = pSDL_JoystickNumButtons(joystick);
is_xbox_gamepad = (axis_count == 6 && button_count >= 14);
}
......
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