#3305 Added mission control and launchpad support

This commit is contained in:
Jerry (Xinyu Hou) 2016-06-15 11:08:08 +01:00
parent 1f78fe6f6d
commit 8f99911636
2 changed files with 9 additions and 3 deletions

View File

@ -35,6 +35,9 @@ static const UInt32 s_superVK = kVK_Command;
static const UInt32 s_capsLockVK = kVK_CapsLock;
static const UInt32 s_numLockVK = kVK_ANSI_KeypadClear; // 71
static const UInt32 s_missionControlVK = 160;
static const UInt32 s_launchpadVK = 131;
static const UInt32 s_osxNumLock = 1 << 16;
struct KeyEntry {
@ -111,7 +114,10 @@ static const KeyEntry s_controlKeys[] = {
// toggle modifiers
{ kKeyNumLock, s_numLockVK },
{ kKeyCapsLock, s_capsLockVK }
{ kKeyCapsLock, s_capsLockVK },
{ kKeyMissionControl, s_missionControlVK },
{ kKeyLaunchpad, s_launchpadVK }
};

View File

@ -282,8 +282,8 @@ static const KeyID kKeyAppUser1 = 0xE0B6;
static const KeyID kKeyAppUser2 = 0xE0B7;
static const KeyID kKeyBrightnessDown = 0xE0B8;
static const KeyID kKeyBrightnessUp = 0xE0B9;
static const KeyID kKeyExposeDesktop = 0xE0C0;
static const KeyID kKeyExposeApp = 0xE0C1;
static const KeyID kKeyMissionControl = 0xE0C0;
static const KeyID kKeyLaunchpad = 0xE0C1;
//@}