mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Style nits
This commit is contained in:
parent
b9fde7bb24
commit
410e750d24
@ -204,22 +204,22 @@ static void menu_input_key_event(bool down, unsigned keycode,
|
||||
|
||||
if (!block_pending)
|
||||
{
|
||||
switch (keycode)
|
||||
{
|
||||
case RETROK_RETURN:
|
||||
pending_iter.action = MENU_ACTION_OK;
|
||||
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_ACTION, NULL);
|
||||
timeout = 1;
|
||||
block_pending = true;
|
||||
break;
|
||||
case RETROK_BACKSPACE:
|
||||
pending_iter.action = MENU_ACTION_CANCEL;
|
||||
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_ACTION, NULL);
|
||||
timeout = 1;
|
||||
block_pending = true;
|
||||
break;
|
||||
}
|
||||
return;
|
||||
switch (keycode)
|
||||
{
|
||||
case RETROK_RETURN:
|
||||
pending_iter.action = MENU_ACTION_OK;
|
||||
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_ACTION, NULL);
|
||||
timeout = 1;
|
||||
block_pending = true;
|
||||
break;
|
||||
case RETROK_BACKSPACE:
|
||||
pending_iter.action = MENU_ACTION_CANCEL;
|
||||
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_ACTION, NULL);
|
||||
timeout = 1;
|
||||
block_pending = true;
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (timeout >= 1)
|
||||
@ -227,10 +227,10 @@ static void menu_input_key_event(bool down, unsigned keycode,
|
||||
timeout++;
|
||||
|
||||
if (timeout > 2)
|
||||
{
|
||||
{
|
||||
timeout = 0;
|
||||
block_pending = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user