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
14921492 }
14931493
14941494 void Application::touchUpdateEvent(QTouchEvent* event) {
1495− TouchEvent thisEvent(*event, _lastTouchEvent);
1496− _controllerScriptingInterface.emitTouchUpdateEvent(thisEvent); // send events to any registered scripts
1497− _lastTouchEvent = thisEvent;
1495+ if (event->type() == QEvent::TouchUpdate) {
1496+ TouchEvent thisEvent(*event, _lastTouchEvent);
1497+ _controllerScriptingInterface.emitTouchUpdateEvent(thisEvent); // send events to any registered scripts
1498+ _lastTouchEvent = thisEvent;
1499+ }
14981500
14991501 // if one of our scripts have asked to capture this event, then stop processing it
15001502 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