src/joystick/darwin/SDL_sysjoystick.c
branchSDL-1.2
changeset 7625 952791dbe6ba
parent 6137 4720145f848b
child 8918 3c8124d60e8e
equal deleted inserted replaced
7491:3665bc284271 7625:952791dbe6ba
   338 						{
   338 						{
   339 							pDevice->buttons++;
   339 							pDevice->buttons++;
   340 							headElement = &(pDevice->firstButton);
   340 							headElement = &(pDevice->firstButton);
   341 						}
   341 						}
   342 						break;
   342 						break;
       
   343 					case kHIDPage_Simulation:
       
   344                         {
       
   345                             switch (usage) /* look at usage to determine function */
       
   346                             {
       
   347                                 case kHIDUsage_Sim_Rudder:
       
   348                                 case kHIDUsage_Sim_Throttle:
       
   349                                     element = (recElement *) NewPtrClear (sizeof (recElement));
       
   350                                     if (element)
       
   351                                     {
       
   352                                         pDevice->axes++;
       
   353                                         headElement = &(pDevice->firstAxis);
       
   354                                     }
       
   355                                     break;
       
   356                             }							
       
   357                         }
       
   358 						break;
   343 					default:
   359 					default:
   344 						break;
   360 						break;
   345 				}
   361 				}
   346 			}
   362 			}
   347 		}
   363 		}