(Apple HID) Refactor input_device_hid_callback pt. 3

This commit is contained in:
Twinaphex 2014-09-30 14:28:50 +02:00
parent b9ed7362eb
commit b285044e78

View File

@ -68,7 +68,12 @@ static void hid_device_input_callback(void* context, IOReturn result,
switch (type) switch (type)
{ {
case kIOHIDElementTypeInput_Misc: case kIOHIDElementTypeInput_Misc:
switch (use)
{ {
case kHIDUsage_GD_Hatswitch:
break;
default:
{
static const uint32_t axis_use_ids[4] = { 48, 49, 50, 53 }; static const uint32_t axis_use_ids[4] = { 48, 49, 50, 53 };
int i; int i;
@ -88,6 +93,7 @@ static void hid_device_input_callback(void* context, IOReturn result,
((val * 2.0f) - 1.0f) * 32767.0f; ((val * 2.0f) - 1.0f) * 32767.0f;
} }
} }
}
break; break;
} }
break; break;