javafx - Continue loop with enter -


so i'm working on javafx project in have loop, want continue if enter pressed. since i'm working scenes , it's javafx not want use scanner method (because can't, or can ?) wants input entered console not in game frame.

i searched web way found scanner , not work. there other possible way or use scanner somehow.

thanks in advance..

take @ question. should attach keyevent listener , updade yor state cause loop continue. note loop in case shoul run in separate thread.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -