575859606162636465
public void enable(byte device) { if ((device & 0x1) == 1) { window.addKeyListener(new Keyboard()); } if ((device >> 1 & 0x1) == 1) { window.addMouseListener(new Mouse(scale)); window.addMouseMotionListener(new Mouse(scale)); } }