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

@ -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);
}