src/joystick/darwin/SDL_sysjoystick.c
branchSDL-1.2
changeset 7625 952791dbe6ba
parent 6137 4720145f848b
child 8918 3c8124d60e8e
     1.1 --- a/src/joystick/darwin/SDL_sysjoystick.c	Sun Jul 21 11:09:53 2013 -0700
     1.2 +++ b/src/joystick/darwin/SDL_sysjoystick.c	Sat Aug 10 10:54:03 2013 -0700
     1.3 @@ -340,6 +340,22 @@
     1.4  							headElement = &(pDevice->firstButton);
     1.5  						}
     1.6  						break;
     1.7 +					case kHIDPage_Simulation:
     1.8 +                        {
     1.9 +                            switch (usage) /* look at usage to determine function */
    1.10 +                            {
    1.11 +                                case kHIDUsage_Sim_Rudder:
    1.12 +                                case kHIDUsage_Sim_Throttle:
    1.13 +                                    element = (recElement *) NewPtrClear (sizeof (recElement));
    1.14 +                                    if (element)
    1.15 +                                    {
    1.16 +                                        pDevice->axes++;
    1.17 +                                        headElement = &(pDevice->firstAxis);
    1.18 +                                    }
    1.19 +                                    break;
    1.20 +                            }							
    1.21 +                        }
    1.22 +						break;
    1.23  					default:
    1.24  						break;
    1.25  				}