コード例 #1
0
 public void keyReleased(KeyEvent keyEvent) {
   KEvent evt = new KEvent();
   evt.key = awtToAminoKeycode(keyEvent.getKeyCode());
   fireEvent("KEY_RELEASED", null, evt);
 }
コード例 #2
0
 public void keyPressed(KeyEvent keyEvent) {
   KEvent evt = new KEvent();
   // evt.key = keyEvent.getKeyCode();
   evt.key = awtToAminoKeycode(keyEvent.getKeyCode());
   fireEvent("KEY_PRESSED", null, evt);
 }