Explorar o código

Mac: expose joystick buttons that report themselves as having 'Start' and 'Select' HID usages.

I don't know if any joysticks report those usages for any buttons in practice, but other prominent Mac gaming software exposes them, so we might as well too.
Alex Szpakowski %!s(int64=10) %!d(string=hai) anos
pai
achega
4ae69e3222
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/joystick/darwin/SDL_sysjoystick.c

+ 2 - 0
src/joystick/darwin/SDL_sysjoystick.c

@@ -247,6 +247,8 @@ AddHIDElement(const void *value, void *parameter)
                             case kHIDUsage_GD_DPadDown:
                             case kHIDUsage_GD_DPadRight:
                             case kHIDUsage_GD_DPadLeft:
+                            case kHIDUsage_GD_Start:
+                            case kHIDUsage_GD_Select:
                                 if (!ElementAlreadyAdded(cookie, pDevice->firstButton)) {
                                     element = (recElement *) SDL_calloc(1, sizeof (recElement));
                                     if (element) {