mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 08:15:33 +01:00
Readded the Key Shortcut function.
This commit is contained in:
parent
12ecc537e9
commit
9c133c0509
@ -948,7 +948,9 @@ static bool IsHotkey(wxKeyEvent &event, int id, bool held = false)
|
|||||||
return HotkeyManagerEmu::IsPressed(id, held);
|
return HotkeyManagerEmu::IsPressed(id, held);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return (event.GetKeyCode() != WXK_NONE &&
|
||||||
|
event.GetKeyCode() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkey[id] &&
|
||||||
|
event.GetModifiers() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkeyModifier[id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetCmdForHotkey(unsigned int key)
|
int GetCmdForHotkey(unsigned int key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user