mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Cleanups
This commit is contained in:
parent
70abd3ea9b
commit
1ec8099789
@ -301,12 +301,12 @@ static int16_t input_state(unsigned port, unsigned device,
|
|||||||
g_settings.input.binds[15],
|
g_settings.input.binds[15],
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!driver.block_libretro_input &&
|
if (!driver.block_libretro_input)
|
||||||
((id < RARCH_FIRST_META_KEY ||
|
{
|
||||||
device == RETRO_DEVICE_KEYBOARD))
|
if (((id < RARCH_FIRST_META_KEY) || (device == RETRO_DEVICE_KEYBOARD)))
|
||||||
)
|
res = driver.input->input_state(driver.input_data, binds, port,
|
||||||
res = driver.input->input_state(driver.input_data, binds, port,
|
device, idx, id);
|
||||||
device, idx, id);
|
}
|
||||||
|
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
if (device == RETRO_DEVICE_JOYPAD && port == 0)
|
if (device == RETRO_DEVICE_JOYPAD && port == 0)
|
||||||
|
@ -599,8 +599,11 @@ static inline retro_input_t input_keys_pressed(void)
|
|||||||
input_push_analog_dpad(g_settings.input.autoconf_binds[i],
|
input_push_analog_dpad(g_settings.input.autoconf_binds[i],
|
||||||
g_settings.input.analog_dpad_mode[i]);
|
g_settings.input.analog_dpad_mode[i]);
|
||||||
|
|
||||||
g_extern.turbo_frame_enable[i] = driver.block_libretro_input ? 0 :
|
if (driver.block_libretro_input)
|
||||||
driver.input->input_state(driver.input_data, binds, i,
|
g_extern.turbo_frame_enable[i] = 0;
|
||||||
|
else
|
||||||
|
g_extern.turbo_frame_enable[i] =
|
||||||
|
driver.input->input_state(driver.input_data, binds, i,
|
||||||
RETRO_DEVICE_JOYPAD, 0, RARCH_TURBO_ENABLE);
|
RETRO_DEVICE_JOYPAD, 0, RARCH_TURBO_ENABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user