Skip to content

Instantly share code, notes, and snippets.

@panmari
Created July 10, 2012 13:00
Show Gist options
  • Save panmari/3083103 to your computer and use it in GitHub Desktop.
Save panmari/3083103 to your computer and use it in GitHub Desktop.
disable touch with only one thread
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