Skip to content

Commit

Permalink
Mac: expose joystick buttons that report themselves as having 'Start'…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
slime73 committed Dec 28, 2015
1 parent 51c1d69 commit 4ae69e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/joystick/darwin/SDL_sysjoystick.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 4ae69e3

Please sign in to comment.