mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Merge pull request #2398 from Arche-san/osx-hid-reorder-axis
os x hid : reorder axis (keep compatibility with others platforms)
This commit is contained in:
commit
1f4d15a82f
@ -198,7 +198,13 @@ static void iohidmanager_hid_device_input_callback(void *data, IOReturn result,
|
|||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
int i;
|
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 ++)
|
for (i = 0; i < 6; i ++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user