mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
Add command/meta key support
This commit is contained in:
@@ -403,7 +403,7 @@ void DoPause (void)
|
||||
if ((isEscPauseKey && theKeys->IsSet(PL_KEY_SPECIAL(kEscape))) ||
|
||||
(!isEscPauseKey && theKeys->IsSet(PL_KEY_SPECIAL(kTab))))
|
||||
paused = false;
|
||||
else if (theKeys->IsSet(PL_KEY_EITHER_SPECIAL(kControl)))
|
||||
else if (theKeys->IsSet(PL_KEY_SHORTCUT))
|
||||
DoCommandKey();
|
||||
|
||||
Delay(1, nullptr);
|
||||
@@ -513,7 +513,7 @@ void DoHeliumEngaged (gliderPtr thisGlider)
|
||||
|
||||
#else
|
||||
|
||||
if (theKeys->IsSet(PL_KEY_EITHER_SPECIAL(kControl)))
|
||||
if (theKeys->IsSet(PL_KEY_SHORTCUT))
|
||||
DoCommandKey();
|
||||
|
||||
// Cheesy - Use touchscreen menu as quit
|
||||
@@ -601,7 +601,7 @@ void GetInput (gliderPtr thisGlider)
|
||||
{
|
||||
const KeyDownStates *theKeys = PortabilityLayer::InputManager::GetInstance()->GetKeys();
|
||||
|
||||
if (theKeys->IsSet(PL_KEY_EITHER_SPECIAL(kControl)))
|
||||
if (theKeys->IsSet(PL_KEY_SHORTCUT))
|
||||
DoCommandKey();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user