mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(Android) Buildfixes and remove unused variable warnings
This commit is contained in:
parent
954121b99c
commit
abf7a80f27
@ -914,14 +914,14 @@ static int16_t android_input_state(void *data,
|
||||
static bool android_input_key_pressed(void *data, int key)
|
||||
{
|
||||
android_input_t *android = (android_input_t*)data;
|
||||
driver_t *driver = driver_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
input_overlay_state_t *ol_state = input_overlay_get_state_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
if (!android)
|
||||
return false;
|
||||
|
||||
return (driver->overlay_state.buttons
|
||||
& (1ULL << key)) || input_joypad_pressed(android->joypad,
|
||||
return (ol_state && (ol_state->buttons
|
||||
& (1ULL << key))) || input_joypad_pressed(android->joypad,
|
||||
0, settings->input.binds[0], key);
|
||||
}
|
||||
|
||||
|
@ -248,7 +248,6 @@ static INLINE void input_poll_overlay(
|
||||
unsigned i, j, device;
|
||||
uint16_t key_mod = 0;
|
||||
bool polled = false;
|
||||
driver_t *driver = driver_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
input_overlay_state_t *ol_state = input_overlay_get_state_ptr();
|
||||
|
||||
@ -386,6 +385,8 @@ static void input_poll(void)
|
||||
|
||||
input_driver_poll();
|
||||
|
||||
(void)driver;
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
if (overlay)
|
||||
input_poll_overlay(overlay,
|
||||
|
Loading…
x
Reference in New Issue
Block a user