Add input:touchdevice:td_rotation config

Add support for touch device roation. The rotation is
set globally with `input:touchdevice:td_rotation config` and by
device with `td_rotation` in a device block.
This commit is contained in:
Histausse
2022-10-07 16:03:52 +02:00
parent fe4a97f245
commit 32ae0c51f0
5 changed files with 59 additions and 0 deletions

View File

@@ -562,6 +562,7 @@ std::string dispatchKeyword(std::string in) {
if (COMMAND.contains("input") || COMMAND.contains("device:")) {
g_pInputManager->setKeyboardLayout(); // update kb layout
g_pInputManager->setPointerConfigs(); // update mouse cfgs
g_pInputManager->setTouchDeviceConfigs(); // update touch device cfgs
}
if (COMMAND.contains("general:layout"))