Package cc.plural.ecs.component.input

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

Related Classes of cc.plural.ecs.component.input.MouseListenerComponentMoveIntent

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.