Merge pull request #11550 from sonninnos/turbomode-fix

Refresh turbo button selection in 'Single Button'
This commit is contained in:
Autechre 2020-11-12 01:51:31 +01:00 committed by GitHub
commit f502abf166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -24871,7 +24871,8 @@ static int16_t input_state_device(
{
p_rarch->input_driver_turbo_btns.turbo_pressed[port] |= (1 << 31);
/* Toggle turbo for selected buttons. */
if (!p_rarch->input_driver_turbo_btns.enable[port])
if (p_rarch->input_driver_turbo_btns.enable[port]
!= (1 << settings->uints.input_turbo_default_button))
{
static const int button_map[]={
RETRO_DEVICE_ID_JOYPAD_B,