mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +02:00
Remove overlay hiding from middle mouse button.
Because it conflicts with edit.js camera panning. You can still toggle the overlay via the O key.
This commit is contained in:
parent
e8b074c85c
commit
6a8ff676ed
1 changed files with 0 additions and 10 deletions
|
@ -1890,16 +1890,6 @@ void Application::mousePressEvent(QMouseEvent* event, unsigned int deviceID) {
|
||||||
computePickRay(mappedEvent.x(), mappedEvent.y()));
|
computePickRay(mappedEvent.x(), mappedEvent.y()));
|
||||||
sendEvent(this, &actionEvent);
|
sendEvent(this, &actionEvent);
|
||||||
|
|
||||||
} else if (event->button() == Qt::RightButton) {
|
|
||||||
// "right click" on controllers to toggle the overlay
|
|
||||||
if (deviceID > 0) {
|
|
||||||
_overlayConductor.setEnabled(!_overlayConductor.getEnabled());
|
|
||||||
}
|
|
||||||
} else if (event->button() == Qt::MiddleButton) {
|
|
||||||
// mouse middle click to toggle the overlay
|
|
||||||
if (deviceID == 0) {
|
|
||||||
_overlayConductor.setEnabled(!_overlayConductor.getEnabled());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue