mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
config+particle: add support for mouse wheel up/down
This commit is contained in:
parent
c79ffbe057
commit
34d832cd22
4 changed files with 10 additions and 0 deletions
4
config.c
4
config.c
|
@ -160,6 +160,10 @@ conf_to_particle(const struct yml_node *node, struct conf_inherit inherited)
|
|||
on_click_templates[MOUSE_BTN_MIDDLE] = template;
|
||||
else if (strcmp(key, "right") == 0)
|
||||
on_click_templates[MOUSE_BTN_RIGHT] = template;
|
||||
else if (strcmp(key, "wheel-up") == 0)
|
||||
on_click_templates[MOUSE_BTN_WHEEL_UP] = template;
|
||||
else if (strcmp(key, "wheel-down") == 0)
|
||||
on_click_templates[MOUSE_BTN_WHEEL_DOWN] = template;
|
||||
else
|
||||
assert(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue