From d7e7a292613a4f20218074ff8299dff099a80098 Mon Sep 17 00:00:00 2001 From: nyx Date: Mon, 3 Mar 2025 15:56:01 -0500 Subject: input: add flip_x and flip_y for touchpad (#9481) --- src/devices/IPointer.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/devices/IPointer.hpp') diff --git a/src/devices/IPointer.hpp b/src/devices/IPointer.hpp index ea9cb9f4..19d91c6c 100644 --- a/src/devices/IPointer.hpp +++ b/src/devices/IPointer.hpp @@ -17,9 +17,10 @@ class IPointer : public IHID { virtual SP aq() = 0; struct SMotionEvent { - uint32_t timeMs = 0; - Vector2D delta, unaccel; - bool mouse = false; + uint32_t timeMs = 0; + Vector2D delta, unaccel; + bool mouse = false; + SP device; }; struct SMotionAbsoluteEvent { @@ -109,6 +110,8 @@ class IPointer : public IHID { bool connected = false; // means connected to the cursor std::string boundOutput = ""; + bool flipX = false; // decide to invert horizontal movement + bool flipY = false; // decide to invert vertical movement WP self; }; -- cgit v1.2.3