Hello all
I am using Button Down / Up events. They exhibit unexpected behaviour for me. By using Log("DN") and Log("UP") statements in the respective events, I observe that when I touch and hold the button, I get a 'DOWN' event, followed immediately by an 'UP' event, followed by another 'DOWN' event. When I finally release the button, I get an 'UP' event. I've temporarily overcome the problem by counting the UP events, and ignoring odd-numbered ones! The 'DOWN' event sets a flag, and starts a Thread (Only if the flag is clear). The 'UP' event clears the flag, which causes the Thread to exit. By ignoring the extra UP event, the extra DOWN event is rendered ineffective. Any ideas would be welcomed...
I am using Button Down / Up events. They exhibit unexpected behaviour for me. By using Log("DN") and Log("UP") statements in the respective events, I observe that when I touch and hold the button, I get a 'DOWN' event, followed immediately by an 'UP' event, followed by another 'DOWN' event. When I finally release the button, I get an 'UP' event. I've temporarily overcome the problem by counting the UP events, and ignoring odd-numbered ones! The 'DOWN' event sets a flag, and starts a Thread (Only if the flag is clear). The 'UP' event clears the flag, which causes the Thread to exit. By ignoring the extra UP event, the extra DOWN event is rendered ineffective. Any ideas would be welcomed...