summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-09-02 13:16:43 +0200
committerGitHub <noreply@github.com>2025-09-02 13:16:43 +0200
commit127aab815908ecbd3db4d23f127d2e96b79855f9 (patch)
tree289ee3e7c9be70c3b45ff91a693b33fe7598502a /src/devices
parent78e86d879fa9bf3afeb73b29a3e668d47df5e9ab (diff)
input: add per-device scroll-factor (#11241)
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/IPointer.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/devices/IPointer.hpp b/src/devices/IPointer.hpp
index e5d76344..197ba123 100644
--- a/src/devices/IPointer.hpp
+++ b/src/devices/IPointer.hpp
@@ -108,11 +108,12 @@ class IPointer : public IHID {
CSignalT<SHoldEndEvent> holdEnd;
} m_pointerEvents;
- bool m_connected = false; // means connected to the cursor
- std::string m_boundOutput = "";
- bool m_flipX = false; // decide to invert horizontal movement
- bool m_flipY = false; // decide to invert vertical movement
- bool m_isTouchpad = false;
-
- WP<IPointer> m_self;
+ bool m_connected = false; // means connected to the cursor
+ std::string m_boundOutput = "";
+ bool m_flipX = false; // decide to invert horizontal movement
+ bool m_flipY = false; // decide to invert vertical movement
+ bool m_isTouchpad = false;
+ std::optional<float> m_scrollFactor = {};
+
+ WP<IPointer> m_self;
};