mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 06:40:39 +00:00
(Android) Fix build
This commit is contained in:
parent
1c0fc0e65e
commit
60dd07364e
@ -302,7 +302,7 @@ static void android_input_poll(void *data)
|
|||||||
int type = AInputEvent_getType(event);
|
int type = AInputEvent_getType(event);
|
||||||
int state_id = state_device_ids[id];
|
int state_id = state_device_ids[id];
|
||||||
|
|
||||||
if(state_i == -1)
|
if(state_id == -1)
|
||||||
state_id = state_device_ids[id] = pads_connected++;
|
state_id = state_device_ids[id] = pads_connected++;
|
||||||
|
|
||||||
int motion_action = AMotionEvent_getAction(event);
|
int motion_action = AMotionEvent_getAction(event);
|
||||||
@ -333,7 +333,7 @@ static void android_input_poll(void *data)
|
|||||||
* because we 'added' 1 to each entry in the LUT -
|
* because we 'added' 1 to each entry in the LUT -
|
||||||
* RETRO_DEVICE_ID_JOYPAD_B is 0
|
* RETRO_DEVICE_ID_JOYPAD_B is 0
|
||||||
*/
|
*/
|
||||||
uint8_t unpacked = (keycode_lut[keycode] >> ((i+1) << 3)) - 1;
|
uint8_t unpacked = (keycode_lut[keycode] >> ((state_id+1) << 3)) - 1;
|
||||||
uint64_t input_state = (1ULL << unpacked);
|
uint64_t input_state = (1ULL << unpacked);
|
||||||
#ifdef RARCH_INPUT_DEBUG
|
#ifdef RARCH_INPUT_DEBUG
|
||||||
char msg[128];
|
char msg[128];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user