91011121314151617
@Override public void actionPerformed(ActionEvent e) { try { View.blockingQueue.put(new ViewKeyPress(ViewKeyPress.Keys.valueOf(e.getActionCommand()), true)); } catch (InterruptedException ex) {} }
161718192021222324
@Override public void keyPressed(KeyEvent e) { try { View.blockingQueue.put(new ViewKeyPress(chooseEvent(e), true)); } catch (InterruptedException e1) {} }
262728293031323334
@Override public void keyReleased(KeyEvent e) { try { View.blockingQueue.put(new ViewKeyPress(chooseEvent(e), false)); } catch (InterruptedException e1) {} }