mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-19 12:02:24 +02:00
Attempt to fix stack splitting on macos
This commit is contained in:
parent
5046f916d6
commit
07230f3b47
@ -712,7 +712,11 @@ void CGuiHandler::moveCursorToPosition(const Point & position)
|
|||||||
|
|
||||||
bool CGuiHandler::isKeyboardCtrlDown() const
|
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];
|
return SDL_GetKeyboardState(nullptr)[SDL_SCANCODE_LCTRL] || SDL_GetKeyboardState(nullptr)[SDL_SCANCODE_RCTRL];
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CGuiHandler::isKeyboardAltDown() const
|
bool CGuiHandler::isKeyboardAltDown() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user