From 25ffeb1ed95f3901e506c25230b8e46c2ac0bbd4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 10 Jul 2015 18:45:22 +0200 Subject: [PATCH] (Xenon) Don't depend on global state in input driver --- input/drivers/xenon360_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/drivers/xenon360_input.c b/input/drivers/xenon360_input.c index 57044ceee9..86f8106bc0 100644 --- a/input/drivers/xenon360_input.c +++ b/input/drivers/xenon360_input.c @@ -27,6 +27,7 @@ #define MAX_PADS 4 static uint64_t state[MAX_PADS]; +static uint64_t lifecycle_state; static void xenon360_input_poll(void *data) { @@ -89,8 +90,7 @@ static void* xenon360_input_init(void) static bool xenon360_input_key_pressed(void *data, int key) { - global_t *global = global_get_ptr(); - return (global->lifecycle_state & (1ULL << key)); + return (lifecycle_state & (1ULL << key)); } static uint64_t xenon360_get_capabilities(void *data)