summaryrefslogtreecommitdiff
path: root/src/devices/IPointer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/IPointer.hpp')
-rw-r--r--src/devices/IPointer.hpp9
1 files changed, 6 insertions, 3 deletions
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<Aquamarine::IPointer> 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<IPointer> 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<IPointer> self;
};