Search:

Type: Posts; User: Micha S.

Search: Search took 0.27 seconds.

  1. Replies
    3
    Views
    26

    [SOLVED] Re: KeyListener is not working

    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...
  2. Replies
    3
    Views
    26

    [SOLVED] KeyListener is not working

    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...
Results 1 to 2 of 2