mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-10 11:22:47 +00:00
(Xenon 360) Get rid of lifecycle_state
This commit is contained in:
parent
9e2925ea23
commit
5dc4a730d2
@ -28,7 +28,6 @@
|
||||
#define MAX_PADS 4
|
||||
|
||||
static uint64_t state[MAX_PADS];
|
||||
static uint64_t lifecycle_state;
|
||||
|
||||
static void xenon360_input_poll(void *data)
|
||||
{
|
||||
@ -91,7 +90,7 @@ static void* xenon360_input_init(void)
|
||||
|
||||
static bool xenon360_input_key_pressed(void *data, int key)
|
||||
{
|
||||
if (lifecycle_state & (UINT64_C(1) << key))
|
||||
if (state & (UINT64_C(1) << key))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
@ -99,7 +98,7 @@ static bool xenon360_input_key_pressed(void *data, int key)
|
||||
|
||||
static bool xenon360_input_meta_key_pressed(void *data, int key)
|
||||
{
|
||||
return (lifecycle_state & (UINT64_C(1) << key));
|
||||
return (state & (UINT64_C(1) << key));
|
||||
}
|
||||
|
||||
static uint64_t xenon360_input_get_capabilities(void *data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user