mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
Implement tap_button_map for input devices
This commit is contained in:
parent
63f28bcf1e
commit
13c6627ddb
8 changed files with 53 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ struct input_config *new_input_config(const char* identifier) {
|
|||
}
|
||||
|
||||
input->tap = INT_MIN;
|
||||
input->tap_button_map = INT_MIN;
|
||||
input->drag_lock = INT_MIN;
|
||||
input->dwt = INT_MIN;
|
||||
input->send_events = INT_MIN;
|
||||
|
|
@ -80,6 +81,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) {
|
|||
if (src->tap != INT_MIN) {
|
||||
dst->tap = src->tap;
|
||||
}
|
||||
if (src->tap_button_map != INT_MIN) {
|
||||
dst->tap_button_map = src->tap_button_map;
|
||||
}
|
||||
if (src->xkb_layout) {
|
||||
free(dst->xkb_layout);
|
||||
dst->xkb_layout = strdup(src->xkb_layout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue