mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
Made the "Frame Advance" hotkey work while the key is held
This commit is contained in:
parent
a83d27b9c2
commit
099876782f
@ -1404,7 +1404,11 @@ void CFrame::ParseHotkeys(wxKeyEvent &event)
|
|||||||
unsigned int i = NUM_HOTKEYS;
|
unsigned int i = NUM_HOTKEYS;
|
||||||
for (i = 0; i < NUM_HOTKEYS; i++)
|
for (i = 0; i < NUM_HOTKEYS; i++)
|
||||||
{
|
{
|
||||||
if (IsHotkey(event, i))
|
bool held = false;
|
||||||
|
if (i == HK_FRAME_ADVANCE)
|
||||||
|
held = true;
|
||||||
|
|
||||||
|
if (IsHotkey(event, i, held))
|
||||||
{
|
{
|
||||||
int cmd = GetCmdForHotkey(i);
|
int cmd = GetCmdForHotkey(i);
|
||||||
if (cmd >= 0)
|
if (cmd >= 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user