diff --git a/input/drivers/xenon360_input.c b/input/drivers/xenon360_input.c index cce53c6c68..0b8a942180 100644 --- a/input/drivers/xenon360_input.c +++ b/input/drivers/xenon360_input.c @@ -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)