src/joystick/darwin/SDL_sysjoystick.c
changeset 10273 42768c568a50
parent 10176 3115d38204aa
child 10281 cb13d22b7f09
equal deleted inserted replaced
10272:26104a670291 10273:42768c568a50
   247                             case kHIDUsage_GD_DPadDown:
   247                             case kHIDUsage_GD_DPadDown:
   248                             case kHIDUsage_GD_DPadRight:
   248                             case kHIDUsage_GD_DPadRight:
   249                             case kHIDUsage_GD_DPadLeft:
   249                             case kHIDUsage_GD_DPadLeft:
   250                             case kHIDUsage_GD_Start:
   250                             case kHIDUsage_GD_Start:
   251                             case kHIDUsage_GD_Select:
   251                             case kHIDUsage_GD_Select:
       
   252                             case kHIDUsage_GD_SystemMainMenu:
   252                                 if (!ElementAlreadyAdded(cookie, pDevice->firstButton)) {
   253                                 if (!ElementAlreadyAdded(cookie, pDevice->firstButton)) {
   253                                     element = (recElement *) SDL_calloc(1, sizeof (recElement));
   254                                     element = (recElement *) SDL_calloc(1, sizeof (recElement));
   254                                     if (element) {
   255                                     if (element) {
   255                                         pDevice->buttons++;
   256                                         pDevice->buttons++;
   256                                         headElement = &(pDevice->firstButton);
   257                                         headElement = &(pDevice->firstButton);