1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Renamed gesture-related methods, remove unused code

This commit is contained in:
Ivan Savenko
2023-06-16 12:54:07 +03:00
parent 563d7dd41f
commit 06437cbde6
17 changed files with 44 additions and 45 deletions

View File

@@ -36,7 +36,7 @@ void EventDispatcher::processLists(ui16 activityFlag, const Functor & cb)
processList(AEventsReceiver::WHEEL, wheelInterested);
processList(AEventsReceiver::DOUBLECLICK, doubleClickInterested);
processList(AEventsReceiver::TEXTINPUT, textInterested);
processList(AEventsReceiver::GESTURE_PANNING, panningInterested);
processList(AEventsReceiver::GESTURE, panningInterested);
}
void EventDispatcher::activateElement(AEventsReceiver * elem, ui16 activityFlag)
@@ -228,9 +228,9 @@ void EventDispatcher::dispatchGesturePanningStarted(const Point & initialPositio
for(auto it : copied)
{
if (it->receiveEvent(initialPosition, AEventsReceiver::GESTURE_PANNING))
if (it->receiveEvent(initialPosition, AEventsReceiver::GESTURE))
{
it->panning(true, initialPosition, initialPosition);
it->gesture(true, initialPosition, initialPosition);
it->panningState = true;
}
}
@@ -244,7 +244,7 @@ void EventDispatcher::dispatchGesturePanningEnded(const Point & initialPosition,
{
if (it->isPanning())
{
it->panning(false, initialPosition, finalPosition);
it->gesture(false, initialPosition, finalPosition);
it->panningState = false;
}
}