(Android) Cleanup

This commit is contained in:
twinaphex 2015-07-09 18:11:53 +02:00
parent 63c7104ab1
commit 8c1a918899

View File

@ -66,7 +66,7 @@ enum
AXIS_LTRIGGER = 17, AXIS_LTRIGGER = 17,
AXIS_RTRIGGER = 18, AXIS_RTRIGGER = 18,
AXIS_GAS = 22, AXIS_GAS = 22,
AXIS_BRAKE = 23, AXIS_BRAKE = 23
}; };
#define MAX_AXIS 10 #define MAX_AXIS 10
@ -143,8 +143,7 @@ static void engine_handle_dpad_getaxisvalue(android_input_t *android,
android->hat_state[port][1] = (int)haty; android->hat_state[port][1] = (int)haty;
/* XXX: this could be a loop instead, but do we really want to /* XXX: this could be a loop instead, but do we really want to
* loop through every axis? * loop through every axis? */
*/
android->analog_state[port][0] = (int16_t)(x * 32767.0f); android->analog_state[port][0] = (int16_t)(x * 32767.0f);
android->analog_state[port][1] = (int16_t)(y * 32767.0f); android->analog_state[port][1] = (int16_t)(y * 32767.0f);
android->analog_state[port][2] = (int16_t)(z * 32767.0f); android->analog_state[port][2] = (int16_t)(z * 32767.0f);