add mouse_left _right

This commit is contained in:
Vaxry 2023-02-23 13:55:27 +00:00
parent 2bf7f9e413
commit 14a2de0d0e

View file

@ -258,16 +258,20 @@ bool CKeybindManager::onAxisEvent(wlr_pointer_axis_event* e) {
bool found = false;
if (e->source == WLR_AXIS_SOURCE_WHEEL && e->orientation == WLR_AXIS_ORIENTATION_VERTICAL) {
if (e->delta < 0) {
if (e->delta < 0)
found = handleKeybinds(MODS, "mouse_down", 0, 0, true, 0);
} else {
else
found = handleKeybinds(MODS, "mouse_up", 0, 0, true, 0);
}
if (found)
shadowKeybinds();
} else if (e->source == WLR_AXIS_SOURCE_WHEEL && e->orientation == WLR_AXIS_ORIENTATION_HORIZONTAL) {
if (e->delta < 0)
found = handleKeybinds(MODS, "mouse_left", 0, 0, true, 0);
else
found = handleKeybinds(MODS, "mouse_right", 0, 0, true, 0);
}
if (found)
shadowKeybinds();
return !found;
}