Commit 4cec31aa authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

dinput: Enable Xbox One controller View and Xbox buttons on Mac.

parent 46980e79
......@@ -661,7 +661,7 @@ static void get_osx_device_elements(JoystickImpl *device, int axis_map[8])
case kIOHIDElementTypeInput_Button:
{
TRACE("kIOHIDElementTypeInput_Button usage_page %d\n", usage_page);
if (usage_page != kHIDPage_Button)
if ((usage_page != kHIDPage_Button) && (usage_page != kHIDPage_Consumer))
{
/* avoid strange elements found on the 360 controller */
continue;
......
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