summaryrefslogtreecommitdiff
path: root/src/managers/input
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-04 21:46:41 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-04 21:46:41 +0100
commit60c414ccadd0e2ff6be22bb880f605a164f451d5 (patch)
tree48bac8e67c812245c3100a5c3a607d35d92ccdb8 /src/managers/input
parent0d702b556d0a52f1df53ac1e52fac11b8302783b (diff)
add left_handed config for input
Diffstat (limited to 'src/managers/input')
-rw-r--r--src/managers/input/InputManager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 6b717ed2..56e03b8f 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -692,6 +692,11 @@ void CInputManager::setMouseConfigs() {
else
libinput_device_config_click_set_method(LIBINPUTDEV, LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER);
+ if ((HASCONFIG ? g_pConfigManager->getDeviceInt(devname, "left_handed") : g_pConfigManager->getInt("input:touchpad:left_handed")) == 0)
+ libinput_device_config_left_handed_set(LIBINPUTDEV, 0);
+ else
+ libinput_device_config_left_handed_set(LIBINPUTDEV, 1);
+
if (libinput_device_config_middle_emulation_is_available(LIBINPUTDEV)) { // middleclick on r+l mouse button pressed
if ((HASCONFIG ? g_pConfigManager->getDeviceInt(devname, "middle_button_emulation") : g_pConfigManager->getInt("input:touchpad:middle_button_emulation")) == 1)
libinput_device_config_middle_emulation_set_enabled(LIBINPUTDEV, LIBINPUT_CONFIG_MIDDLE_EMULATION_ENABLED);