Exemplo n.º 1
0
 public void unhook() {
   KeyboardEventDispatcher.OnKeyPressed.remove(onKeyPress);
   MouseEventDispatcher.OnMouseRelease.remove(onMouseRelease);
 }
Exemplo n.º 2
0
 public void hook() {
   KeyboardEventDispatcher.OnKeyPressed.add(onKeyPress);
   MouseEventDispatcher.OnMouseRelease.add(onMouseRelease);
 }