Package com.pointcliki.input.InputManager

Examples of com.pointcliki.input.InputManager.MouseEventDispatcher


        if (type.equals("mouse.down")) focus();
        handleUIMouseEvent(type, new Vector2f(event.x(), event.y()), event);
        return Minion.CONTINUE;
      }
    };
    MouseEventDispatcher m = PointClikiGame.inputManager().mouseDispatcher();
    m.addMinion("mouse.move", fMouseMinion);
    m.addMinion("mouse.down", fMouseMinion);
    m.addMinion("mouse.up", fMouseMinion);
    m.addMinion("mouse.click", fMouseMinion);
    m.addMinion("mouse.drag", fMouseMinion);
  }
View Full Code Here


    m.addMinion("mouse.drag", fMouseMinion);
  }
 
  protected void unregisterUIMinion() {
    if (fMouseMinion == null) return;
    MouseEventDispatcher m = PointClikiGame.inputManager().mouseDispatcher();
    m.removeMinion("mouse.move", fMouseMinion);
    m.removeMinion("mouse.down", fMouseMinion);
    m.removeMinion("mouse.up", fMouseMinion);
    m.removeMinion("mouse.click", fMouseMinion);
    m.removeMinion("mouse.drag", fMouseMinion);
    fMouseMinion = null;
  }
View Full Code Here

TOP

Related Classes of com.pointcliki.input.InputManager.MouseEventDispatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.