Cocoa: Support some sim page joystick elements

This is an SDL2 compatibility fix.
This commit is contained in:
Camilla Löwy 2019-03-28 22:58:47 +01:00
parent c32dc3a085
commit 0d355379e0

View File

@ -231,6 +231,19 @@ static void matchCallback(void* context,
break; break;
} }
} }
else if (page == kHIDPage_Simulation)
{
switch (usage)
{
case kHIDUsage_Sim_Accelerator:
case kHIDUsage_Sim_Brake:
case kHIDUsage_Sim_Throttle:
case kHIDUsage_Sim_Rudder:
case kHIDUsage_Sim_Steering:
target = axes;
break;
}
}
else if (page == kHIDPage_Button || page == kHIDPage_Consumer) else if (page == kHIDPage_Button || page == kHIDPage_Consumer)
target = buttons; target = buttons;