History

Only send touchUpdateEvent if it is one

ie. not for touchBeginEvent

Atlante45 committed 11 years ago

Commit fb5a0c81 parent e2b60d31 file · +5 −3Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+5−3
@@ -1492,9 +1492,11 @@ void Application::mouseReleaseEvent(QMouseEvent* event, unsigned int deviceID) { · 1491 unmodified lines
1492}1492}
1493 1493
1494void Application::touchUpdateEvent(QTouchEvent* event) {1494void Application::touchUpdateEvent(QTouchEvent* event) {
1495 TouchEvent thisEvent(*event, _lastTouchEvent);1495 if (event->type() == QEvent::TouchUpdate) {
1496 _controllerScriptingInterface.emitTouchUpdateEvent(thisEvent); // send events to any registered scripts1496 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 it1501 // if one of our scripts have asked to capture this event, then stop processing it
1500 if (_controllerScriptingInterface.isTouchCaptured()) {1502 if (_controllerScriptingInterface.isTouchCaptured()) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t