Commit edad5202 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winmm: For Mac, fix joyGetPosEx() to put number of buttons pressed in dwButtonNumber field.

Based on behavior of Windows revealed by interactive tests added by Bruno Jesus.
parent 4a7b5856
......@@ -678,8 +678,7 @@ LRESULT driver_joyGetPosEx(DWORD_PTR device_id, JOYINFOEX* info)
if (value)
{
info->dwButtons |= 1 << i;
if (!info->dwButtonNumber)
info->dwButtonNumber = i + 1;
info->dwButtonNumber++;
}
}
}
......
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