|
|
@@ -138,15 +138,17 @@ void IZ_JoystickHandleButtonEvents(IZ_JoystickState* state, IZ_Action* action, S |
|
|
|
|
|
|
|
// TODO test with XInput, make compatible with Apple |
|
|
|
|
|
|
|
// TODO honor mapping with controller |
|
|
|
|
|
|
|
#ifdef IZ_MACOS |
|
|
|
//printf("%d\n", e.jbutton.button); |
|
|
|
if (e.jbutton.button == 2) { |
|
|
|
normalized_button = 4; |
|
|
|
} else if (e.jbutton.button == 6) { |
|
|
|
normalized_button = 11; |
|
|
|
} else if (e.jbutton.button == 4) { |
|
|
|
normalized_button = 10; |
|
|
|
} |
|
|
|
// if (e.jbutton.button == 2) { |
|
|
|
// normalized_button = 4; |
|
|
|
// } else if (e.jbutton.button == 6) { |
|
|
|
// normalized_button = 11; |
|
|
|
// } else if (e.jbutton.button == 4) { |
|
|
|
// normalized_button = 10; |
|
|
|
// } |
|
|
|
#endif |
|
|
|
|
|
|
|
if (normalized_button == state->config.control_mapping[control_index]) { |
|
|
|