mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +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
|
#define MAX_PADS 4
|
||||||
|
|
||||||
static uint64_t state[MAX_PADS];
|
static uint64_t state[MAX_PADS];
|
||||||
|
static uint64_t lifecycle_state;
|
||||||
|
|
||||||
static void xenon360_input_poll(void *data)
|
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)
|
static bool xenon360_input_key_pressed(void *data, int key)
|
||||||
{
|
{
|
||||||
global_t *global = global_get_ptr();
|
return (lifecycle_state & (1ULL << key));
|
||||||
return (global->lifecycle_state & (1ULL << key));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint64_t xenon360_get_capabilities(void *data)
|
static uint64_t xenon360_get_capabilities(void *data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user