binds: add drag_threshold for click/drag isolation (#9839)

---------

Co-authored-by: Leeman <lstrout@enlj.com>
This commit is contained in:
alaricljs 2025-04-12 10:43:13 -04:00 committed by GitHub
parent 0399e64274
commit 6538970087
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 103 additions and 41 deletions

View file

@ -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 {