mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +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
@@ -14,16 +14,21 @@ namespace BlackMisc
|
||||
{
|
||||
namespace Input
|
||||
{
|
||||
|
||||
CKeyboardKeyList::CKeyboardKeyList() { }
|
||||
|
||||
CKeyboardKeyList::CKeyboardKeyList(const CKeyboardKey &key)
|
||||
{
|
||||
this->push_back(key);
|
||||
}
|
||||
|
||||
CKeyboardKeyList::CKeyboardKeyList(const CSequence<CKeyboardKey> &baseClass) :
|
||||
CSequence<CKeyboardKey>(baseClass)
|
||||
{ }
|
||||
|
||||
const CKeyboardKeyList &CKeyboardKeyList::allSupportedKeys()
|
||||
{
|
||||
static CKeyboardKeyList allKeys = {
|
||||
static const CKeyboardKeyList allKeys =
|
||||
{
|
||||
CKeyboardKey(Key_ControlLeft),
|
||||
CKeyboardKey(Key_ControlRight),
|
||||
CKeyboardKey(Key_AltLeft),
|
||||
@@ -70,6 +75,5 @@ namespace BlackMisc
|
||||
|
||||
return allKeys;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user