From 127aab815908ecbd3db4d23f127d2e96b79855f9 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Tue, 2 Sep 2025 13:16:43 +0200 Subject: input: add per-device scroll-factor (#11241) --- src/devices/IPointer.hpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/devices/IPointer.hpp') 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 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 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 m_scrollFactor = {}; + + WP m_self; }; -- cgit v1.2.3