mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
refs #318 Let CInputManager forward HotkeyFunc events
This commit is contained in:
@@ -87,6 +87,9 @@ namespace BlackCore
|
||||
|
||||
void CInputManager::callFunctionsBy(const CHotkeyFunction &hotkeyFunction, bool isKeyDown)
|
||||
{
|
||||
BlackMisc::Event::CEventHotkeyFunction hotkeyEvent(hotkeyFunction, isKeyDown);
|
||||
if(m_eventForwardingEnabled) emit hotkeyFuncEvent(hotkeyEvent);
|
||||
|
||||
if (!m_hashRegisteredFunctions.contains(hotkeyFunction)) return;
|
||||
auto func = m_hashRegisteredFunctions.value(hotkeyFunction);
|
||||
func(isKeyDown);
|
||||
|
||||
Reference in New Issue
Block a user