Package framework.userinput.MouseListenerSystem

Examples of framework.userinput.MouseListenerSystem.MouseMovedEvent


  @Override
  public void onEvent(Event e) {
    if(e != null && e.getType().equals("MouseMoved")){
      PositionComponent pos = (PositionComponent) getSiblingByType(PositionComponent.class.getName());
      if(pos != null){
        MouseMovedEvent m = (MouseMovedEvent) e;
        pos.setVector(m.getTo());
      }
    }
  }
View Full Code Here

TOP

Related Classes of framework.userinput.MouseListenerSystem.MouseMovedEvent

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.