1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Add workaround for cursor visibility on mobiles when using touch input

This commit is contained in:
Ivan Savenko 2024-06-26 16:39:35 +00:00
parent 207a4ecaa1
commit cbbbe1b23a

View File

@ -58,6 +58,9 @@ InputSourceTouch::InputSourceTouch()
void InputSourceTouch::handleEventFingerMotion(const SDL_TouchFingerEvent & tfinger)
{
if (CCS && CCS->curh && settings["video"]["cursor"].String() == "software" && state != TouchState::RELATIVE_MODE)
CCS->curh->cursorMove(GH.getCursorPosition().x, GH.getCursorPosition().y);
switch(state)
{
case TouchState::RELATIVE_MODE: