mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
refs #912, keyboard key list / combination utility functions and minor fixes
* Ctor for single key * static const CKeyboardKeyList * some formatting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
9921cc3497
commit
09b9ca5d50
@@ -34,8 +34,14 @@ namespace BlackMisc
|
||||
//! Default constructor
|
||||
CHotkeyCombination() = default;
|
||||
|
||||
//! Init with key
|
||||
CHotkeyCombination(const CKeyboardKey &key);
|
||||
|
||||
//! Init with list of keys
|
||||
CHotkeyCombination(const CKeyboardKeyList &keys);
|
||||
|
||||
//! Set keyboard keys
|
||||
void setKeyboardKeys(const CKeyboardKeyList &list) { m_keyboardKeys = list; }
|
||||
void setKeyboardKeys(const CKeyboardKeyList &keys) { m_keyboardKeys = keys; }
|
||||
|
||||
//! Get keyboard keys
|
||||
CKeyboardKeyList getKeyboardKeys() const { return m_keyboardKeys; }
|
||||
@@ -87,8 +93,8 @@ namespace BlackMisc
|
||||
BLACK_METAMEMBER(joystickButtons)
|
||||
);
|
||||
};
|
||||
}
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::Input::CHotkeyCombination)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user