summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2015-03-01 08:23:15 +1100
committerskidau <skidau@gmail.com>2015-03-08 20:27:13 +1100
commit099876782fa1dde03d428738fb7dd17aeff8cc35 (patch)
treeb36894258c5ef8ca2369089dc275a7532400fb72 /Source/Core
parenta83d27b9c2bcc1c5c617474edf84b6a24c722085 (diff)
Made the "Frame Advance" hotkey work while the key is held
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Frame.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp
index 8906dba1f6..5a4e674f32 100644
--- a/Source/Core/DolphinWX/Frame.cpp
+++ b/Source/Core/DolphinWX/Frame.cpp
@@ -1404,7 +1404,11 @@ void CFrame::ParseHotkeys(wxKeyEvent &event)
unsigned int i = NUM_HOTKEYS;
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);
if (cmd >= 0)