mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-25 12:14:46 +02:00
haptic feedback only if menu opens
fix
This commit is contained in:
parent
c6e860720e
commit
bea6effcb7
@ -225,10 +225,12 @@ void InputSourceTouch::handleUpdate()
|
|||||||
GH.events().dispatchShowPopup(GH.getCursorPosition());
|
GH.events().dispatchShowPopup(GH.getCursorPosition());
|
||||||
|
|
||||||
if (GH.windows().isTopWindowPopup())
|
if (GH.windows().isTopWindowPopup())
|
||||||
|
{
|
||||||
hapticFeedback();
|
hapticFeedback();
|
||||||
state = TouchState::TAP_DOWN_LONG;
|
state = TouchState::TAP_DOWN_LONG;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Point InputSourceTouch::convertTouchToMouse(const SDL_TouchFingerEvent & tfinger)
|
Point InputSourceTouch::convertTouchToMouse(const SDL_TouchFingerEvent & tfinger)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user