I am working on a power off button. When the button is pressed, it will ask for confirmation. Confirmation is pressing the button again, otherwise pressing anywhere else will abort.
The issue is, when the button is initially pressed, both points in the touchscreen logic still have their last value, and will trigger confirmation without the screen being pressed.
I got around this by hard coding the touch points to 1 and 1 for x,y.
Doing this prevents any further touch points from being processed.
Any ideas?
Fixed by creating new touch point, no way to refresh old one.