@Override public void nativeKeyPressed(NativeKeyEvent arg0) { System.out.println("Key Pressed: " + NativeKeyEvent.getKeyText(arg0.getKeyCode())); if (bufferedWriter == null) { System.out.println(bufferedWriter); } try { bufferedWriter.write(NativeKeyEvent.getKeyText(arg0.getKeyCode()) + " "); bufferedWriter.flush(); } catch (IOException e1) { e1.printStackTrace(); } }
public void nativeKeyReleased(NativeKeyEvent e) { outlet(1, NativeKeyEvent.getKeyText(e.getKeyCode())); }
public void nativeKeyPressed(NativeKeyEvent e) { outlet(0, NativeKeyEvent.getKeyText(e.getKeyCode())); }
public void nativeKeyTyped(NativeKeyEvent e) { outlet(2, e.getKeyText(e.getKeyCode())); }