mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -04:00
config/input: implement mouse bindings
* New config section, "mouse-bindings", where bindings are defined on the form "action=BTN_<name> * pointer_button() handler now scans the bindings list instead of hardcoding primary-paste to BTN_MIDDLE. * The implementation handles single- double- and triple clicks in the bindings, but there is currently no way to define anything but a single-click binding in the configuration.
This commit is contained in:
parent
9fae38a4b2
commit
45384839f0
6 changed files with 94 additions and 20 deletions
2
config.h
2
config.h
|
|
@ -39,7 +39,7 @@ struct config {
|
|||
struct {
|
||||
/* Bindings for "normal" mode */
|
||||
char *key[BIND_ACTION_COUNT];
|
||||
char *mouse[BIND_ACTION_COUNT];
|
||||
struct mouse_binding mouse[BIND_ACTION_COUNT];
|
||||
|
||||
/*
|
||||
* Special modes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue