src/joystick/darwin/SDL_sysjoystick.c
changeset 10853 f4a771647ecd
parent 10780 4ea5472ed455
child 11201 813a8510bd0c
equal deleted inserted replaced
10852:494d0f56ae7a 10853:f4a771647ecd
   246 
   246 
   247                     case kHIDPage_Simulation:
   247                     case kHIDPage_Simulation:
   248                         switch (usage) {
   248                         switch (usage) {
   249                             case kHIDUsage_Sim_Rudder:
   249                             case kHIDUsage_Sim_Rudder:
   250                             case kHIDUsage_Sim_Throttle:
   250                             case kHIDUsage_Sim_Throttle:
       
   251                             case kHIDUsage_Sim_Accelerator:
       
   252                             case kHIDUsage_Sim_Brake:
   251                                 if (!ElementAlreadyAdded(cookie, pDevice->firstAxis)) {
   253                                 if (!ElementAlreadyAdded(cookie, pDevice->firstAxis)) {
   252                                     element = (recElement *) SDL_calloc(1, sizeof (recElement));
   254                                     element = (recElement *) SDL_calloc(1, sizeof (recElement));
   253                                     if (element) {
   255                                     if (element) {
   254                                         pDevice->axes++;
   256                                         pDevice->axes++;
   255                                         headElement = &(pDevice->firstAxis);
   257                                         headElement = &(pDevice->firstAxis);