Package de.lessvoid.nifty.elements.events

Examples of de.lessvoid.nifty.elements.events.NiftyMouseMovedEvent


  private boolean handleMoveEvent(final NiftyMouseInputEvent mouseEvent) {
    if (mouseEvent.getMouseX() != lastMouseX ||
        mouseEvent.getMouseY() != lastMouseY) {
      lastMouseX = mouseEvent.getMouseX();
      lastMouseY = mouseEvent.getMouseY();
      nifty.publishEvent(element.getId(), new NiftyMouseMovedEvent(element, mouseEvent));
      return true;
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.elements.events.NiftyMouseMovedEvent

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.