They don't get called, I just noticed that. ^^
How do I set the focus? I have already tried "frame.requestFocus();" in the constructor of Game.. but actually, I have no Idea what that should do 3:-O...
Type: Posts; User: Micha S.
They don't get called, I just noticed that. ^^
How do I set the focus? I have already tried "frame.requestFocus();" in the constructor of Game.. but actually, I have no Idea what that should do 3:-O...
I'm programming a game, but the keyListener doesn't work. Here is the source code:
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
public class InputHandler implements...