diff --git a/libretro_version_1.c b/libretro_version_1.c index df1a8632c3..636865fb82 100644 --- a/libretro_version_1.c +++ b/libretro_version_1.c @@ -174,6 +174,7 @@ static int16_t input_state(unsigned port, unsigned device, if (device == RETRO_DEVICE_JOYPAD && (id < RETRO_DEVICE_ID_JOYPAD_UP || id > RETRO_DEVICE_ID_JOYPAD_RIGHT)) { + static uint16_t turbo_enable[MAX_USERS]; /* * Apply turbo button if activated. * @@ -183,11 +184,11 @@ static int16_t input_state(unsigned port, unsigned device, * periodic pulse defined by the configured duty cycle. */ if (res && global->turbo.frame_enable[port]) - global->turbo.enable[port] |= (1 << id); + turbo_enable[port] |= (1 << id); else if (!res) - global->turbo.enable[port] &= ~(1 << id); + turbo_enable[port] &= ~(1 << id); - if (global->turbo.enable[port] & (1 << id)) + if (turbo_enable[port] & (1 << id)) { /* if turbo button is enabled for this key ID */ res = res && ((global->turbo.count % settings->input.turbo_period) diff --git a/runloop.h b/runloop.h index ce03a7fd33..5808e3bb0d 100644 --- a/runloop.h +++ b/runloop.h @@ -201,7 +201,6 @@ typedef struct global struct { bool frame_enable[MAX_USERS]; - uint16_t enable[MAX_USERS]; unsigned count; } turbo;