mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-25 20:32:22 +00:00
(Apple HID) Refactor input_device_hid_callback pt. 3
This commit is contained in:
parent
b9ed7362eb
commit
b285044e78
@ -68,7 +68,12 @@ static void hid_device_input_callback(void* context, IOReturn result,
|
||||
switch (type)
|
||||
{
|
||||
case kIOHIDElementTypeInput_Misc:
|
||||
switch (use)
|
||||
{
|
||||
case kHIDUsage_GD_Hatswitch:
|
||||
break;
|
||||
default:
|
||||
{
|
||||
static const uint32_t axis_use_ids[4] = { 48, 49, 50, 53 };
|
||||
int i;
|
||||
|
||||
@ -88,6 +93,7 @@ static void hid_device_input_callback(void* context, IOReturn result,
|
||||
((val * 2.0f) - 1.0f) * 32767.0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user