Example #1
0
 protected void keyPressed(int key) {
   int action = getGameAction(key);
   map.keyPressed(action, false);
 }
Example #2
0
 protected void keyRepeated(int key) {
   int action = getGameAction(key);
   map.keyPressed(action, true);
 }