Still a very simple touch button example is needed as the provided source codes are not understandable for a beginner to touch screen (e.g., as they are overloaded with extra features like menu arrays).
I tried with the following code, but release button is not detected (ts.justReleased() ):
after having touched (ts.justPressed() ) and lifting the finger, the button still stays in "pressed" mode,
one has to touch anywhere else on the screen apart from the button and only after that the button release is detected.
Instead, wishful would be:
detect the first button strike (button just pressed, "button down"),
wait without delay (non-blocking the running code) while the button is pressed
... until button is just released ("button up"),
and then proceed with the arbitrary button strike action (move a cursor, scroll a menu, reset values, what else).
Still a very simple touch button example is needed as the provided source codes are not understandable for a beginner to touch screen (e.g., as they are overloaded with extra features like menu arrays).
I tried with the following code, but release button is not detected (ts.justReleased() ):
after having touched (ts.justPressed() ) and lifting the finger, the button still stays in "pressed" mode, one has to touch anywhere else on the screen apart from the button and only after that the button release is detected.
Instead, wishful would be: detect the first button strike (button just pressed, "button down"), wait without delay (non-blocking the running code) while the button is pressed ... until button is just released ("button up"), and then proceed with the arbitrary button strike action (move a cursor, scroll a menu, reset values, what else).