mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 10:37:35 +02:00
Disable touch event emulation for tablet until we fix crash
This commit is contained in:
parent
cfd9f8b64e
commit
5946a965da
1 changed files with 8 additions and 0 deletions
|
@ -337,11 +337,19 @@ void Web3DOverlay::setProxyWindow(QWindow* proxyWindow) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Web3DOverlay::handlePointerEvent(const PointerEvent& event) {
|
void Web3DOverlay::handlePointerEvent(const PointerEvent& event) {
|
||||||
|
// FIXME touch event emulation is broken in some way. Do NOT enable this code
|
||||||
|
// unless you have done a debug build of the application and verified that
|
||||||
|
// you are not getting assertion errors on handling the touch events inside
|
||||||
|
// Qt.
|
||||||
|
#if 0
|
||||||
if (_inputMode == Touch) {
|
if (_inputMode == Touch) {
|
||||||
handlePointerEventAsTouch(event);
|
handlePointerEventAsTouch(event);
|
||||||
} else {
|
} else {
|
||||||
handlePointerEventAsMouse(event);
|
handlePointerEventAsMouse(event);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
handlePointerEventAsMouse(event);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
|
void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
|
||||||
|
|
Loading…
Reference in a new issue