summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index ba0b2df4..eb72c7b4 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -93,14 +93,16 @@ void CInputManager::onMouseMoved(IPointer::SMotionEvent e) {
Vector2D delta = e.delta;
Vector2D unaccel = e.unaccel;
- if (!e.mouse && e.device) {
- if (e.device->flipX) {
- delta.x = -delta.x;
- unaccel.x = -unaccel.x;
- }
- if (e.device->flipY) {
- delta.y = -delta.y;
- unaccel.y = -unaccel.y;
+ if (e.device) {
+ if (e.device->isTouchpad) {
+ if (e.device->flipX) {
+ delta.x = -delta.x;
+ unaccel.x = -unaccel.x;
+ }
+ if (e.device->flipY) {
+ delta.y = -delta.y;
+ unaccel.y = -unaccel.y;
+ }
}
}