mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
refs #453 Refactor CInputManger and low level input handlers
This commit is contained in:
committed by
Mathew Sutcliffe
parent
63c7c6be0d
commit
199a1e5fcb
@@ -36,7 +36,7 @@ using namespace BlackMisc::PhysicalQuantities;
|
||||
using namespace BlackMisc::Geo;
|
||||
using namespace BlackMisc::Settings;
|
||||
using namespace BlackMisc::Audio;
|
||||
using namespace BlackMisc::Hardware;
|
||||
using namespace BlackMisc::Input;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
@@ -375,26 +375,6 @@ void SwiftGuiStd::ps_toggleWindowVisibility()
|
||||
}
|
||||
}
|
||||
|
||||
void SwiftGuiStd::ps_registerHotkeyFunctions()
|
||||
{
|
||||
CInputManager *m_inputManager = BlackCore::CInputManager::getInstance();
|
||||
|
||||
m_inputManager->registerHotkeyFunc(CHotkeyFunction::Opacity50(), this, [ this ](bool isPressed)
|
||||
{
|
||||
if (isPressed) this->ps_onChangedWindowOpacity(50);
|
||||
});
|
||||
|
||||
m_inputManager->registerHotkeyFunc(CHotkeyFunction::Opacity100(), this, [ this ](bool isPressed)
|
||||
{
|
||||
if (isPressed) this->ps_onChangedWindowOpacity(100);
|
||||
});
|
||||
|
||||
m_inputManager->registerHotkeyFunc(CHotkeyFunction::ToogleWindowsStayOnTop(), this, [ this ](bool isPressed)
|
||||
{
|
||||
if (isPressed) this->ps_toogleWindowStayOnTop();
|
||||
});
|
||||
}
|
||||
|
||||
void SwiftGuiStd::ps_onStyleSheetsChanged()
|
||||
{
|
||||
this->initStyleSheet();
|
||||
|
||||
Reference in New Issue
Block a user