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

PROPOSAL: have tulip.touch() return -1 or None for pointers that aren't down #427

Open
gunadai opened this issue Nov 27, 2024 · 1 comment

Comments

@gunadai
Copy link
Contributor

gunadai commented Nov 27, 2024

Currently tulip.touch() returns a tuple of the x,y coordinates for the three possible pointers that can be simultaneously down, but the data is either arbitrary or the last touch position for the pointers that aren't down. I believe that makes it difficult if not impossible to tell how many pointers are actually in use. If the coordinates of the pointers that aren't down were set to -1 or None, it would be easy to tell.

I'm using a TULIP4_R11, so this probably could be fixed in the gt911_touchscreen.c file (last_touch_x/last_touch_y), but it might need to be fixed for other touchscreens as well.

@gunadai
Copy link
Contributor Author

gunadai commented Dec 8, 2024

I just added a PR for that.

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

No branches or pull requests

1 participant