1 Reply Latest reply on Sep 19, 2010 6:02 PM by 843851

    keyPressed problem

    843851
      My keyPressed function (in a GameCanvas) only responds to a few keys, namely 1,3 & 0.

      Here's how the code looks:

      protected void keyPressed(int keyCode) {
      ticker.setString("key is " + keyCode);
      this.setTicker(ticker);
      }

      Any suggestions?

      Thanks...