mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:17:45 +02:00
Merge pull request #4414 from birarda/master
workaround for missing touch begin event in 5.4.x
This commit is contained in:
commit
6f24a62758
1 changed files with 7 additions and 0 deletions
|
@ -39,6 +39,13 @@ function touchUpdateEvent(event) {
|
||||||
print("touchUpdateEvent event.x,y=" + event.x + ", " + event.y);
|
print("touchUpdateEvent event.x,y=" + event.x + ", " + event.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!startedTouching) {
|
||||||
|
// handle Qt 5.4.x bug where we get touch update without a touch begin event
|
||||||
|
startedTouching = true;
|
||||||
|
lastX = event.x;
|
||||||
|
lastY = event.y;
|
||||||
|
}
|
||||||
|
|
||||||
var MOUSE_YAW_SCALE = -0.25;
|
var MOUSE_YAW_SCALE = -0.25;
|
||||||
var MOUSE_PITCH_SCALE = -12.5;
|
var MOUSE_PITCH_SCALE = -12.5;
|
||||||
var FIXED_MOUSE_TIMESTEP = 0.016;
|
var FIXED_MOUSE_TIMESTEP = 0.016;
|
||||||
|
|
Loading…
Reference in a new issue