-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Touchscreen): add support for generic touchscreen devices #272
base: main
Are you sure you want to change the base?
Conversation
776e188
to
c0406fc
Compare
I'll test this when I get back. |
07534cb
to
f2ba72e
Compare
config: | ||
touchscreen: | ||
orientation: "right" | ||
width: 1280 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be better to use an aspect ratio here and scale it based in the true resolution. We would need to detect that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left width
and height
here to allow users to override the width/height of the virtual touchscreen that gets created, but I have updated this PR to now query the source touchscreen for its size if these are not defined.
f2ba72e
to
3aed117
Compare
3aed117
to
479744d
Compare
I'm going to test this on my flip to see if it can fix the bad touchscreen input |
This change adds support for generic touchscreen source devices. This change also adds the
config
section of a source device to allow defining arbitrary configuration of that captured source device. i.e. in the case of touchscreens, it can allow the source driver to translate touches based on the orientation of the touchscreen.