mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-26 07:57:59 -04:00
input: implement support for mouse wheel left/right
We now emit button 6/7 events (when the client application grabs the mouse). This buttons map to mouse wheel horizontal scroll events. Or, left/right tilting, if you like. Wayland report these as ‘axis’ events (just like regular scroll wheel events), and thus we need to translate those scroll events to button events. libinput does not define any mouse buttons for wheel tilts, so we add our own defitions. These are added last in the BTN_* range, just before the BTN_JOYSTICK events.
This commit is contained in:
parent
7a372a8c23
commit
c2cc964116
5 changed files with 55 additions and 29 deletions
|
|
@ -41,6 +41,7 @@
|
|||
of box drawing characters rendered by foot itself (rather than using
|
||||
font glyphs) (https://codeberg.org/dnkl/foot/issues/474).
|
||||
* `XM`+`xm` to terminfo.
|
||||
* Mouse buttons 6/7 (mouse wheel left/right).
|
||||
|
||||
|
||||
### Changed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue