Showing the changes to interface/src/Application.cpp (1 of 17 files). Show all
Unified · Split
| @@ -1528,9 +1528,11 @@ void Application::mouseReleaseEvent(QMouseEvent* event, unsigned int deviceID) { · 1527 unmodified lines | |||
| 1528 | } | 1528 | } |
| 1529 | 1529 | ||
| 1530 | void Application::touchUpdateEvent(QTouchEvent* event) { | 1530 | void Application::touchUpdateEvent(QTouchEvent* event) { |
| 1531 | TouchEvent thisEvent(*event, _lastTouchEvent); | 1531 | if (event->type() == QEvent::TouchUpdate) { |
| 1532 | _controllerScriptingInterface.emitTouchUpdateEvent(thisEvent); // send events to any registered scripts | 1532 | TouchEvent thisEvent(*event, _lastTouchEvent); |
| 1533 | _lastTouchEvent = thisEvent; | 1533 | _controllerScriptingInterface.emitTouchUpdateEvent(thisEvent); // send events to any registered scripts |
| 1534 | _lastTouchEvent = thisEvent; | ||
| 1535 | } | ||
| 1534 | 1536 | ||
| 1535 | // if one of our scripts have asked to capture this event, then stop processing it | 1537 | // if one of our scripts have asked to capture this event, then stop processing it |
| 1536 | if (_controllerScriptingInterface.isTouchCaptured()) { | 1538 | if (_controllerScriptingInterface.isTouchCaptured()) { |