[ OSX ] enables Xbox One S Guide (System Main Menu) button detection. the one possible impact is that since button identifiers on OSX are just their sequence in the HID report descriptor we might change the button order, and any existing/saved mappings may get their order changed.
authorSam Lantinga <slouken@libsdl.org>
Mon, 08 Aug 2016 12:17:53 -0700
changeset 10273 42768c568a50
parent 10272 26104a670291
child 10274 3501018c6df2
[ OSX ] enables Xbox One S Guide (System Main Menu) button detection. the one possible impact is that since button identifiers on OSX are just their sequence in the HID report descriptor we might change the button order, and any existing/saved mappings may get their order changed.
src/joystick/darwin/SDL_sysjoystick.c
--- a/src/joystick/darwin/SDL_sysjoystick.c	Sat Aug 06 15:09:20 2016 +0200
+++ b/src/joystick/darwin/SDL_sysjoystick.c	Mon Aug 08 12:17:53 2016 -0700
@@ -249,6 +249,7 @@
                             case kHIDUsage_GD_DPadLeft:
                             case kHIDUsage_GD_Start:
                             case kHIDUsage_GD_Select:
+                            case kHIDUsage_GD_SystemMainMenu:
                                 if (!ElementAlreadyAdded(cookie, pDevice->firstButton)) {
                                     element = (recElement *) SDL_calloc(1, sizeof (recElement));
                                     if (element) {