mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Moved input handling from GuiHandler to set of classes in eventsSDL dir
This commit is contained in:
@@ -98,8 +98,8 @@ void MapViewActions::handleSwipeMove(const Point & cursorPosition)
|
||||
if(!swipeEnabled() && !GH.isMouseButtonPressed(MouseButton::MIDDLE))
|
||||
return;
|
||||
|
||||
// on mobile platforms with enabled swipe any button is enough
|
||||
if(swipeEnabled() && (!GH.isMouseButtonPressed() || GH.multifinger))
|
||||
// on mobile platforms with enabled swipe we use left button
|
||||
if(swipeEnabled() && !GH.isMouseButtonPressed(MouseButton::LEFT))
|
||||
return;
|
||||
|
||||
if(!isSwiping)
|
||||
|
||||
Reference in New Issue
Block a user