ie. not for touchBeginEvent
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1492,9 +1492,11 @@ void Application::mouseReleaseEvent(QMouseEvent* event, unsigned int deviceID) { · 1491 unmodified lines | |||
| 1492 | } | 1492 | } |
| 1493 | 1493 | ||
| 1494 | void Application::touchUpdateEvent(QTouchEvent* event) { | 1494 | void Application::touchUpdateEvent(QTouchEvent* event) { |
| 1495 | TouchEvent thisEvent(*event, _lastTouchEvent); | 1495 | if (event->type() == QEvent::TouchUpdate) { |
| 1496 | _controllerScriptingInterface.emitTouchUpdateEvent(thisEvent); // send events to any registered scripts | 1496 | TouchEvent thisEvent(*event, _lastTouchEvent); |
| 1497 | _lastTouchEvent = thisEvent; | 1497 | _controllerScriptingInterface.emitTouchUpdateEvent(thisEvent); // send events to any registered scripts |
| 1498 | _lastTouchEvent = thisEvent; | ||
| 1499 | } | ||
| 1498 | 1500 | ||
| 1499 | // if one of our scripts have asked to capture this event, then stop processing it | 1501 | // if one of our scripts have asked to capture this event, then stop processing it |
| 1500 | if (_controllerScriptingInterface.isTouchCaptured()) { | 1502 | if (_controllerScriptingInterface.isTouchCaptured()) { |