mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 22:38:34 +00:00
(Console/Android) Simplify input_key_pressed implementation
This commit is contained in:
parent
e58ca0b95b
commit
269698661a
@ -481,12 +481,7 @@ static int16_t android_input_state(void *data, const struct retro_keybind **bind
|
||||
|
||||
static bool android_input_key_pressed(void *data, int key)
|
||||
{
|
||||
(void)data;
|
||||
|
||||
if(g_extern.lifecycle_state & (1ULL << key))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return (g_extern.lifecycle_state & (1ULL << key));
|
||||
}
|
||||
|
||||
static void android_input_free_input(void *data)
|
||||
|
@ -455,12 +455,7 @@ static void ps3_input_post_init(void)
|
||||
|
||||
static bool ps3_input_key_pressed(void *data, int key)
|
||||
{
|
||||
(void)data;
|
||||
|
||||
if(g_extern.lifecycle_state & (1ULL << key))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return (g_extern.lifecycle_state & (1ULL << key));
|
||||
}
|
||||
|
||||
static void ps3_set_default_keybind_lut(unsigned device, unsigned port)
|
||||
|
@ -317,12 +317,7 @@ static void xdk_input_post_init(void)
|
||||
|
||||
static bool xdk_input_key_pressed(void *data, int key)
|
||||
{
|
||||
(void)data;
|
||||
|
||||
if(g_extern.lifecycle_state & (1ULL << key))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return (g_extern.lifecycle_state & (1ULL << key));
|
||||
}
|
||||
|
||||
const input_driver_t input_xinput =
|
||||
|
Loading…
Reference in New Issue
Block a user