예제 #1
0
 @Override
 public void keyPressed(KeyEvent key) {
   if (key.isControlDown()) {
     if (key.getKeyCode() == KeyEvent.VK_R) {
       recording = !recording;
       return;
     }
     if (key.getKeyCode() == KeyEvent.VK_S) {
       screenshot = true;
       return;
     }
   }
   Keys.keySet(key.getKeyCode(), true);
 }
예제 #2
0
 public void handleInput() {
   if (Keys.isPressed(Keys.JUMP)) {
     gsm.setState(GameStateManager.MENUSTATE);
   }
 }
예제 #3
0
 @Override
 public void keyReleased(KeyEvent key) {
   Keys.keySet(key.getKeyCode(), false);
 }