mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Use Command key instead of Control as modifier on macOS
This provides an experience closer to the original classic Mac version. This is supported by the earlier changes to gracefully quit the game.
This commit is contained in:
@@ -1637,11 +1637,19 @@ static bool IdentifyVKey(const SDL_KeyboardEvent *keyEvt, GpKeyIDSubset_t &outSu
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
#ifdef __MACOS__
|
||||
case SDLK_LGUI:
|
||||
#else
|
||||
case SDLK_LCTRL:
|
||||
#endif
|
||||
outSubset = GpKeyIDSubsets::kSpecial;
|
||||
outKey.m_specialKey = GpKeySpecials::kLeftCtrl;
|
||||
break;
|
||||
#ifdef __MACOS__
|
||||
case SDLK_RGUI:
|
||||
#else
|
||||
case SDLK_RCTRL:
|
||||
#endif
|
||||
outSubset = GpKeyIDSubsets::kSpecial;
|
||||
outKey.m_specialKey = GpKeySpecials::kRightCtrl;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user