Пример #1
0
 @Override
 public void keyReleased(KeyEvent arg0) {
   input.set(arg0.getKeyCode(), false);
 }
Пример #2
0
 @Override
 public void keyPressed(KeyEvent e) {
   input.set(e.getKeyCode(), true);
 }