[core/input] add pseudo-event "update" to selectively update modules

to trigger an update of a module (without actually triggering a mouse
interaction), use the special event "update":

bumblebee-ctl -m <module> -b update

see #784
This commit is contained in:
tobi-wan-kenobi 2021-04-28 12:41:04 +02:00
parent 028932a560
commit 1e13798c95
2 changed files with 5 additions and 1 deletions

View file

@ -10,6 +10,7 @@ MIDDLE_MOUSE = 2
RIGHT_MOUSE = 3
WHEEL_UP = 4
WHEEL_DOWN = 5
UPDATE = -1
def button_name(button):
@ -23,6 +24,8 @@ def button_name(button):
return "wheel-up"
if button == WHEEL_DOWN:
return "wheel-down"
if button == UPDATE:
return "update"
return "n/a"