This commit is contained in:
yuiiio 2026-02-02 17:09:00 +08:00 committed by GitHub
commit af19621c57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 64 additions and 1 deletions

View file

@ -14,6 +14,7 @@ enum mouse_event {
MOUSE_ACTION_RELEASE,
MOUSE_ACTION_DRAG,
MOUSE_ACTION_SCROLL,
MOUSE_ACTION_SWIPE,
};
enum direction {
@ -30,6 +31,9 @@ struct mousebind {
/* ex: BTN_LEFT, BTN_RIGHT from linux/input_event_codes.h */
uint32_t button;
/* used for MOUSE_ACTION_SWIPE */
uint32_t fingers;
/* scroll direction; considered instead of button for scroll events */
enum direction direction;