1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Attempt to fix stack splitting on macos

This commit is contained in:
Ivan Savenko 2023-04-10 14:34:17 +03:00
parent 5046f916d6
commit 07230f3b47

View File

@ -712,7 +712,11 @@ void CGuiHandler::moveCursorToPosition(const Point & position)
bool CGuiHandler::isKeyboardCtrlDown() const
{
#ifdef VCMI_MAC
return SDL_GetKeyboardState(nullptr)[SDL_SCANCODE_LGUI] || SDL_GetKeyboardState(nullptr)[SDL_SCANCODE_RGUI];
#else
return SDL_GetKeyboardState(nullptr)[SDL_SCANCODE_LCTRL] || SDL_GetKeyboardState(nullptr)[SDL_SCANCODE_RCTRL];
#endif
}
bool CGuiHandler::isKeyboardAltDown() const