mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
input: don't map wheel events to BTN_{BACK,FORWARD}
BTN_BACK and BTN_FORWARD are separate buttons. The scroll wheel don't
have any button mappings in libinput/wayland, so make up our own
defines.
This allows us to map them in mouse bindings.
Also expose BTN_WHEEL_{LEFT,RIGHT}. These were already defined, and
used, internally, to handle wheel tilt events. With this, they can
also be used in mouse bindings.
Finally, fix encoding used for BTN_{BACK,FORWARD} when sending mouse
button events to the client application. Before this, they were mapped
to buttons 4/5. But, button 4/5 are for the scroll wheel, and as
mentioned above, BTN_{BACK,FORWARD} are not the same as scroll wheel
"buttons".
Closes #1763
This commit is contained in:
parent
15c0078c2d
commit
1136108c97
7 changed files with 59 additions and 27 deletions
12
CHANGELOG.md
12
CHANGELOG.md
|
|
@ -89,9 +89,19 @@
|
|||
and background are the same), the cursor will instead be rendered
|
||||
using the default foreground and background colors, inverted
|
||||
([#1761][1761]).
|
||||
* Mouse wheel events now generate `BTN_WHEEL_BACK` and
|
||||
`BTN_WHEEL_FORWARD` "button presses", instead of `BTN_BACK` and
|
||||
`BTN_FORWARD`. The default bindings have been updated, and
|
||||
`scrollback-up-mouse`, `scrollback-down-mouse`, `font-increase` and
|
||||
`font-decrease` now use the new button names.
|
||||
|
||||
This change allow users to separate physical mouse buttons that
|
||||
_also_ generates `BTN_BACK` and `BTN_FORWARD`, from wheel scrolling
|
||||
([#1763][1763]).
|
||||
|
||||
[1701]: https://codeberg.org/dnkl/foot/issues/1701
|
||||
[1761]: https://codeberg.org/dnkl/foot/issues/1761
|
||||
[1763]: https://codeberg.org/dnkl/foot/issues/1763
|
||||
|
||||
|
||||
### Deprecated
|
||||
|
|
@ -118,6 +128,8 @@
|
|||
foot config has not set any custom cursor colors (i.e. without
|
||||
OSC-12, inverted fg/bg would be used).
|
||||
* Wrong color used when drawing the unfocused, hollow cursor.
|
||||
* Encoding of `BTN_BACK` and `BTN_FORWARD`, when sending a mouse input
|
||||
escape sequence to the terminal application.
|
||||
|
||||
[1694]: https://codeberg.org/dnkl/foot/issues/1694
|
||||
[1717]: https://codeberg.org/dnkl/foot/issues/1717
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue