From 4ae69e3222569b15325dd8d3a689f0a9db893278 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Mon, 28 Dec 2015 15:44:09 -0400 Subject: [PATCH] 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. --- src/joystick/darwin/SDL_sysjoystick.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/joystick/darwin/SDL_sysjoystick.c b/src/joystick/darwin/SDL_sysjoystick.c index 5abb09ce75d37..0cb09d26e5d34 100644 --- a/src/joystick/darwin/SDL_sysjoystick.c +++ b/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) {