1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

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;