Examples of MouseListenerComponentMoveIntent


Examples of cc.plural.ecs.component.input.MouseListenerComponentMoveIntent

    }

    @Override
    public void recieveIntent(ComponentIntent intent) {
        if (intent.getClass() == MouseListenerComponentMoveIntent.class) {
            MouseListenerComponentMoveIntent mouseMoveIntent = (MouseListenerComponentMoveIntent) intent;
            float x = mouseMoveIntent.getX();
            float y = mouseMoveIntent.getY();

            SpatialComponent position = (SpatialComponent) gameObject.getComponent(SpatialComponent.class);
            if (position == null) {
                return;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.