mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Add left_handed support for input devices
Some users may want to switch buttons on their input devices, turns out libinput already supports it. Let's add a support for it in our config. Signed-off-by: Michał Winiarski <knr@hardline.pl>
This commit is contained in:
parent
47fd53812b
commit
e8d8abfbb5
8 changed files with 38 additions and 0 deletions
|
|
@ -832,6 +832,10 @@ void apply_input_config(struct input_config *ic, struct libinput_device *dev) {
|
|||
sway_log(L_DEBUG, "apply_input_config(%s) dwt_set_enabled(%d)", ic->identifier, ic->dwt);
|
||||
libinput_device_config_dwt_set_enabled(dev, ic->dwt);
|
||||
}
|
||||
if (ic->left_handed != INT_MIN) {
|
||||
sway_log(L_DEBUG, "apply_input_config(%s) left_handed_set_enabled(%d)", ic->identifier, ic->left_handed);
|
||||
libinput_device_config_left_handed_set(dev, ic->left_handed);
|
||||
}
|
||||
if (ic->middle_emulation != INT_MIN) {
|
||||
sway_log(L_DEBUG, "apply_input_config(%s) middle_emulation_set_enabled(%d)", ic->identifier, ic->middle_emulation);
|
||||
libinput_device_config_middle_emulation_set_enabled(dev, ic->middle_emulation);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue