From b285044e78793776608fdff02125e975b3a8412d Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Tue, 30 Sep 2014 14:28:50 +0200 Subject: [PATCH] (Apple HID) Refactor input_device_hid_callback pt. 3 --- input/hid/apple_input_hid.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/input/hid/apple_input_hid.c b/input/hid/apple_input_hid.c index 63a0e9ebce..7a8de475e0 100644 --- a/input/hid/apple_input_hid.c +++ b/input/hid/apple_input_hid.c @@ -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;