(Console/Android) Simplify input_key_pressed implementation

This commit is contained in:
twinaphex 2012-12-23 14:44:46 +01:00
parent e58ca0b95b
commit 269698661a
3 changed files with 3 additions and 18 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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 =