Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Touch input rotation #27

Open
harmon25 opened this issue Mar 22, 2020 · 0 comments
Open

Touch input rotation #27

harmon25 opened this issue Mar 22, 2020 · 0 comments

Comments

@harmon25
Copy link

Rotating the image via config.txt seems to work best, but for input the following QT environment variable is required.

QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS

Here is an example of setting with System.put_env/2 before launching the webengine.

System.put_env("QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS", "/dev/input/event0:rotate=270")

Here is a link to relevant section of the QT documentation:

https://doc.qt.io/qt-5/inputs-linux-device.html#touch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant