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

    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...