From 724fa4a7d44fe594109213b8a6f438e3539aa332 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 14 Oct 2022 12:38:44 +0100 Subject: add touch binding to output --- src/managers/input/InputManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/managers/input/InputManager.cpp') diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index dc85735b..5ef257e3 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1092,6 +1092,12 @@ void CInputManager::setTouchDeviceConfigs() { const int ROTATION = std::clamp(HASCONFIG ? g_pConfigManager->getDeviceInt(devname, "touch_transform") : g_pConfigManager->getInt("input:touchdevice:transform"), 0, 7); libinput_device_config_calibration_set_matrix(LIBINPUTDEV, MATRICES[ROTATION]); + + const auto OUTPUT = HASCONFIG ? g_pConfigManager->getDeviceString(devname, "touch_output") : g_pConfigManager->getString("input:touchdevice:output"); + if (!OUTPUT.empty() && OUTPUT != STRVAL_EMPTY) + PTOUCHDEV->boundOutput = OUTPUT; + else + PTOUCHDEV->boundOutput = ""; } } } -- cgit v1.2.3