Cocoa: Add missing IOHID page and usages

Related to #1385.
This commit is contained in:
Camilla Löwy 2019-01-31 00:44:10 +01:00
parent 530b37f4db
commit 51ca41dd9f
2 changed files with 11 additions and 1 deletions

View File

@ -288,6 +288,7 @@ information on what to include when reporting a bug.
- [Cocoa] Bugfix: OpenGL rendering was not initially visible on 10.14 - [Cocoa] Bugfix: OpenGL rendering was not initially visible on 10.14
(#1334,#1346) (#1334,#1346)
- [Cocoa] Bugfix: Caps Lock did not generate any key events (#1368,#1373) - [Cocoa] Bugfix: Caps Lock did not generate any key events (#1368,#1373)
- [Cocoa] Bugfix: Some buttons for some joysticks were ignored (#1385)
- [WGL] Added support for `WGL_EXT_colorspace` for OpenGL ES contexts - [WGL] Added support for `WGL_EXT_colorspace` for OpenGL ES contexts
- [WGL] Added support for `WGL_ARB_create_context_no_error` - [WGL] Added support for `WGL_ARB_create_context_no_error`
- [GLX] Added support for `GLX_ARB_create_context_no_error` - [GLX] Added support for `GLX_ARB_create_context_no_error`

View File

@ -220,9 +220,18 @@ static void matchCallback(void* context,
case kHIDUsage_GD_Hatswitch: case kHIDUsage_GD_Hatswitch:
target = hats; target = hats;
break; break;
case kHIDUsage_GD_DPadUp:
case kHIDUsage_GD_DPadRight:
case kHIDUsage_GD_DPadDown:
case kHIDUsage_GD_DPadLeft:
case kHIDUsage_GD_SystemMainMenu:
case kHIDUsage_GD_Select:
case kHIDUsage_GD_Start:
target = buttons;
break;
} }
} }
else if (page == kHIDPage_Button) else if (page == kHIDPage_Button || page == kHIDPage_Consumer)
target = buttons; target = buttons;
if (target) if (target)