What is the difference between isKeyPressed and isKeyJustPressed?!
I searched the docs. for the difference and just found:
isKeyPressed: Returns whether the key is pressed.
isKeyJustPressed: Returns whether the key has just been pressed.
Anybody knows something that explains better?!
isKeyPressed detects whether the key is currently pressed.
isKeyJustPressed detects whether the key was pressed and released the last frame.
来源:https://stackoverflow.com/questions/40979622/java-libgdx-what-is-the-difference-between-iskeypressed-and-iskeyjustpressed