diff options
| author | alaricljs <me@mooluv.com> | 2025-04-12 10:43:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-12 16:43:13 +0200 |
| commit | 65389700878640fa0e90419b9cf34f48e4186fca (patch) | |
| tree | 55a818c23406da1742599cb2f38ba35d1fc09a6a /src/managers/KeybindManager.hpp | |
| parent | 0399e64274ae5c05a7a40ad78e4d4852d9957e99 (diff) | |
binds: add drag_threshold for click/drag isolation (#9839)
---------
Co-authored-by: Leeman <lstrout@enlj.com>
Diffstat (limited to 'src/managers/KeybindManager.hpp')
| -rw-r--r-- | src/managers/KeybindManager.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp index 8b13bac2..0040d761 100644 --- a/src/managers/KeybindManager.hpp +++ b/src/managers/KeybindManager.hpp @@ -39,6 +39,8 @@ struct SKeybind { bool multiKey = false; bool hasDescription = false; bool dontInhibit = false; + bool click = false; + bool drag = false; // DO NOT INITIALIZE bool shadowed = false; @@ -62,6 +64,7 @@ struct SPressedKeyWithMods { uint32_t modmaskAtPressTime = 0; bool sent = false; std::string submapAtPress = ""; + Vector2D mousePosAtPress = {}; }; struct SParsedKey { |
