mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 07:27:17 +02:00
Add missing comment
This commit is contained in:
parent
f1a9f52ee1
commit
45aca5115d
1 changed files with 4 additions and 0 deletions
|
@ -128,6 +128,10 @@ void KeyboardMouseDevice::mouseMoveEvent(QMouseEvent* event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool KeyboardMouseDevice::isWheelByTouchPad(QWheelEvent* event) {
|
bool KeyboardMouseDevice::isWheelByTouchPad(QWheelEvent* event) {
|
||||||
|
// This function is only used to track two finger swipe using the touchPad on Windows.
|
||||||
|
// That gesture gets sent as a wheel event. This wheel delta values are used to orbit the camera.
|
||||||
|
// On MacOS the two finger swipe fires touch events and wheel events.
|
||||||
|
// In that case we always return false to avoid interference between both.
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue