mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 17:04:34 +00:00
(Xenon) Don't depend on global state in input driver
This commit is contained in:
parent
e2d510e4f6
commit
25ffeb1ed9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user