config+particle: add support for mouse wheel up/down

This commit is contained in:
Daniel Eklöf 2021-06-22 19:30:41 +02:00
parent c79ffbe057
commit 34d832cd22
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 10 additions and 0 deletions

View file

@ -161,6 +161,8 @@ exposable_default_on_mouse(struct exposable *exposable, struct bar *bar,
[MOUSE_BTN_MIDDLE] = "middle",
[MOUSE_BTN_RIGHT] = "right",
[MOUSE_BTN_COUNT] = "count",
[MOUSE_BTN_WHEEL_UP] = "wheel-up",
[MOUSE_BTN_WHEEL_DOWN] = "wheel-down",
};
LOG_DBG("on_mouse: exposable=%p, event=%s, btn=%s, x=%d, y=%d (on-click=%s)",
exposable, event == ON_MOUSE_MOTION ? "motion" : "click",