use offer instead of put so that accepting input doesn't block as user may be

able to click on a button multiple times generating multiple calls to
actionClocked

fixes issue 357.
master
melvin 2013-06-29 17:36:37 +08:00
parent 6908a8862d
commit ec443fee3c
1 changed files with 1 additions and 5 deletions

View File

@ -142,11 +142,7 @@ public class GameController {
}
private void resume(final boolean undoClicked) {
try {
input.put(undoClicked);
} catch (final InterruptedException ex) {
throw new RuntimeException(ex);
}
input.offer(undoClicked);
}
public void passKeyPressed() {