mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 22:51:58 -07:00
input: check for matrix availability in touch config
This commit is contained in:
@@ -1329,7 +1329,8 @@ void CInputManager::setTouchDeviceConfigs() {
|
|||||||
|
|
||||||
const int ROTATION =
|
const int ROTATION =
|
||||||
std::clamp(HASCONFIG ? g_pConfigManager->getDeviceInt(PTOUCHDEV->name, "transform") : g_pConfigManager->getInt("input:touchdevice:transform"), 0, 7);
|
std::clamp(HASCONFIG ? g_pConfigManager->getDeviceInt(PTOUCHDEV->name, "transform") : g_pConfigManager->getInt("input:touchdevice:transform"), 0, 7);
|
||||||
libinput_device_config_calibration_set_matrix(LIBINPUTDEV, MATRICES[ROTATION]);
|
if (libinput_device_config_calibration_has_matrix(LIBINPUTDEV))
|
||||||
|
libinput_device_config_calibration_set_matrix(LIBINPUTDEV, MATRICES[ROTATION]);
|
||||||
|
|
||||||
const auto OUTPUT = HASCONFIG ? g_pConfigManager->getDeviceString(PTOUCHDEV->name, "output") : g_pConfigManager->getString("input:touchdevice:output");
|
const auto OUTPUT = HASCONFIG ? g_pConfigManager->getDeviceString(PTOUCHDEV->name, "output") : g_pConfigManager->getString("input:touchdevice:output");
|
||||||
if (!OUTPUT.empty() && OUTPUT != STRVAL_EMPTY)
|
if (!OUTPUT.empty() && OUTPUT != STRVAL_EMPTY)
|
||||||
|
Reference in New Issue
Block a user