public void keyReleased(KeyEvent keyEvent) { KEvent evt = new KEvent(); evt.key = awtToAminoKeycode(keyEvent.getKeyCode()); fireEvent("KEY_RELEASED", null, evt); }
public void keyPressed(KeyEvent keyEvent) { KEvent evt = new KEvent(); // evt.key = keyEvent.getKeyCode(); evt.key = awtToAminoKeycode(keyEvent.getKeyCode()); fireEvent("KEY_PRESSED", null, evt); }