From dc16abe72805d98b8cf2921936e2e2214e38c754 Mon Sep 17 00:00:00 2001 From: meancoot Date: Mon, 12 Aug 2013 18:02:16 -0400 Subject: [PATCH] (OSX) Fix gamepad axis inputs --- apple/OSX/hid_pad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple/OSX/hid_pad.c b/apple/OSX/hid_pad.c index b3bf370491..79c453e9b3 100644 --- a/apple/OSX/hid_pad.c +++ b/apple/OSX/hid_pad.c @@ -62,7 +62,7 @@ static void hid_input_callback(void* inContext, IOReturn inResult, void* inSende if (state) g_current_input_data.pad_buttons[slot] |= (1 << (use - 1)); else g_current_input_data.pad_buttons[slot] &= ~(1 << (use - 1)); } - else if (type == kIOHIDElementTypeInput_Axis && page == kHIDPage_GenericDesktop) + else if (type == kIOHIDElementTypeInput_Misc && page == kHIDPage_GenericDesktop) { static const uint32_t axis_use_ids[4] = { 48, 49, 50, 53 }; for (int i = 0; i < 4; i ++)