Commit 0d355379 authored by Camilla Löwy's avatar Camilla Löwy
Browse files

Cocoa: Support some sim page joystick elements

This is an SDL2 compatibility fix.
parent c32dc3a0
......@@ -231,6 +231,19 @@ static void matchCallback(void* context,
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;
else if (page == kHIDPage_Button || page == kHIDPage_Consumer)
target = buttons;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment