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

Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Brendan Shanks 2021-02-09 14:38:58 -08:00 committed by Alexandre Julliard
parent 46980e799b
commit 4cec31aaad
1 changed files with 1 additions and 1 deletions

View File

@ -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;