From b9a079344466c9d860e3e3bd6981125e65a3dce1 Mon Sep 17 00:00:00 2001 From: Arche-san Date: Sun, 15 Nov 2015 13:11:40 +0100 Subject: [PATCH] os x hid : reorder axis (keep compatibility with others platforms) --- input/drivers_hid/iohidmanager_hid.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/input/drivers_hid/iohidmanager_hid.c b/input/drivers_hid/iohidmanager_hid.c index 4c1f7ad629..3a7a46d6eb 100644 --- a/input/drivers_hid/iohidmanager_hid.c +++ b/input/drivers_hid/iohidmanager_hid.c @@ -198,7 +198,13 @@ static void iohidmanager_hid_device_input_callback(void *data, IOReturn result, default: { int i; - static const uint32_t axis_use_ids[6] = { 48, 49, 50, 51, 52, 53 }; + // +0/-0 => Left Stick Horizontal => 48 + // +1/-1 => Left Stick Vertical => 49 + // +2/-2 => Right Stick Horizontal => 51 + // +3/-3 => Right Stick Vertical => 52 + // +4/-4 => Left Trigger (if exists) => 50 + // +5/-5 => Right Trigger (if exists) => 53 + static const uint32_t axis_use_ids[6] = { 48, 49, 51, 52, 50, 53 }; for (i = 0; i < 6; i ++) {