Skip to content
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

Add option to limit to calibration resolution #204

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

marcel-behlau-elfin
Copy link

No description provided.

@marcel-behlau-elfin
Copy link
Author

Adds an option to limit coordinates to calibration resolution. This can be useful for integration into qt, which rejects input events on coordinates outside of the screen resolution.

Background: OnPressed and OnReleased events are used in qml. While starting a touch event within a valid screen position and moving the finger outside of the screen, the release event is not triggered.

@merge
Copy link
Member

merge commented Jul 8, 2024

I saw the same problem actually but solved it differently: I didn't want to change the linear filter but added a new one, named crop. It's documented here: https://github.com/libts/tslib?tab=readme-ov-file#module-crop and was already merged in this commit: f35d51b

So if you simply add module crop as the very last line of your ts.conf file, this should be fixed for you.

thank you for your work and time though!

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

Successfully merging this pull request may close these issues.

2 participants