src/joystick/darwin/SDL_sysjoystick.c
branchSDL-1.2
changeset 7625 952791dbe6ba
parent 6137 4720145f848b
child 8918 3c8124d60e8e
--- a/src/joystick/darwin/SDL_sysjoystick.c	Sun Jul 21 11:09:53 2013 -0700
+++ b/src/joystick/darwin/SDL_sysjoystick.c	Sat Aug 10 10:54:03 2013 -0700
@@ -340,6 +340,22 @@
 							headElement = &(pDevice->firstButton);
 						}
 						break;
+					case kHIDPage_Simulation:
+                        {
+                            switch (usage) /* look at usage to determine function */
+                            {
+                                case kHIDUsage_Sim_Rudder:
+                                case kHIDUsage_Sim_Throttle:
+                                    element = (recElement *) NewPtrClear (sizeof (recElement));
+                                    if (element)
+                                    {
+                                        pDevice->axes++;
+                                        headElement = &(pDevice->firstAxis);
+                                    }
+                                    break;
+                            }							
+                        }
+						break;
 					default:
 						break;
 				}