mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
Remove hardcoded esc hotkey, make pause/stop hotkey actually toggle rather than just pausing, fix frame advance hotkey
This commit is contained in:
parent
fa91d74e2c
commit
4b5373b25b
5 changed files with 27 additions and 15 deletions
|
@ -89,14 +89,16 @@ static void HandleFrameskipHotkeys()
|
|||
if (frame_step_delay_count < frame_step_delay && frame_step_hold)
|
||||
frame_step_delay_count++;
|
||||
|
||||
// TODO GUI Update (Depends on an unimplemented feature)
|
||||
// if ((frame_step_count == 0 || frame_step_count == FRAME_STEP_DELAY) && !frame_step_hold)
|
||||
if ((frame_step_count == 0 || frame_step_count == FRAME_STEP_DELAY) && !frame_step_hold)
|
||||
{
|
||||
Core::DoFrameStep();
|
||||
frame_step_hold = true;
|
||||
}
|
||||
|
||||
if (frame_step_count < FRAME_STEP_DELAY)
|
||||
{
|
||||
++frame_step_count;
|
||||
if (frame_step_hold)
|
||||
frame_step_hold = false;
|
||||
frame_step_count++;
|
||||
frame_step_hold = false;
|
||||
}
|
||||
|
||||
if (frame_step_count == FRAME_STEP_DELAY && frame_step_hold &&
|
||||
|
@ -108,8 +110,7 @@ static void HandleFrameskipHotkeys()
|
|||
|
||||
return;
|
||||
}
|
||||
|
||||
if (frame_step_count > 0)
|
||||
else if (frame_step_count > 0)
|
||||
{
|
||||
// Reset frame advance
|
||||
frame_step_count = 0;
|
||||
|
@ -143,7 +144,7 @@ void HotkeyScheduler::Run()
|
|||
|
||||
// Pause and Unpause
|
||||
if (IsHotkey(HK_PLAY_PAUSE))
|
||||
emit PauseHotkey();
|
||||
emit TogglePauseHotkey();
|
||||
|
||||
// Stop
|
||||
if (IsHotkey(HK_STOP))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue