summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-08-28 11:20:29 +0200
committerGitHub <noreply@github.com>2025-08-28 11:20:29 +0200
commit81bf4eccba449bfe2b6adfb51260108aec710d4f (patch)
tree215c5b536cbcf1df9888081aadd3de16eb4b3ebe /src/managers/input/InputManager.hpp
parent378e130f1426648d8d734049800128f9882805bf (diff)
input: Add fully configurable trackpad gestures (#11490)
Adds configurable trackpad gestures
Diffstat (limited to 'src/managers/input/InputManager.hpp')
-rw-r--r--src/managers/input/InputManager.hpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/managers/input/InputManager.hpp b/src/managers/input/InputManager.hpp
index 7a0a308f..56751cf5 100644
--- a/src/managers/input/InputManager.hpp
+++ b/src/managers/input/InputManager.hpp
@@ -141,6 +141,10 @@ class CInputManager {
void onSwipeEnd(IPointer::SSwipeEndEvent);
void onSwipeUpdate(IPointer::SSwipeUpdateEvent);
+ void onPinchBegin(IPointer::SPinchBeginEvent);
+ void onPinchUpdate(IPointer::SPinchUpdateEvent);
+ void onPinchEnd(IPointer::SPinchEndEvent);
+
void onTabletAxis(CTablet::SAxisEvent);
void onTabletProximity(CTablet::SProximityEvent);
void onTabletTip(CTablet::STipEvent);
@@ -179,8 +183,6 @@ class CInputManager {
void recheckIdleInhibitorStatus();
bool isWindowInhibiting(const PHLWINDOW& pWindow, bool onlyHl = true);
- SSwipeGesture m_activeSwipe;
-
CTimer m_lastCursorMovement;
CInputMethodRelay m_relay;
@@ -276,13 +278,8 @@ class CInputManager {
};
std::vector<UP<SIdleInhibitor>> m_idleInhibitors;
- // swipe
- void beginWorkspaceSwipe();
- void updateWorkspaceSwipe(double);
- void endWorkspaceSwipe();
-
- void setBorderCursorIcon(eBorderIconDirection);
- void setCursorIconOnBorder(PHLWINDOW w);
+ void setBorderCursorIcon(eBorderIconDirection);
+ void setCursorIconOnBorder(PHLWINDOW w);
// temporary. Obeys setUntilUnset.
void setCursorImageOverride(const std::string& name);
@@ -313,6 +310,7 @@ class CInputManager {
friend class CKeybindManager;
friend class CWLSurface;
+ friend class CWorkspaceSwipeGesture;
};
inline UP<CInputManager> g_pInputManager;