Created
July 10, 2012 13:00
-
-
Save panmari/3083103 to your computer and use it in GitHub Desktop.
disable touch with only one thread
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void flipCardsBack() { | |
setTouchEnabled(false); // Disable mouse events | |
delay(1000); | |
card1.show(1); // Flip cards back | |
card2.show(1); | |
refresh(); | |
setTouchEnabled(true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment