Java keyboard input - game development
问题 I have a specific "problem" with a game I'm creating for class. The game is an implementation of "Break it". To move the platform at the bottom I just used a key listener. The problem is that after the first key press there is a short "lag" or "stutter" before the platform starts moving. How could I prevent this to get a smooth response? Is there another way than KeyListener? KeyBindings? Here is the key listener implementation private class KeyControl implements KeyListener { private int dx