Package com.ardor3d.input.logical

Examples of com.ardor3d.input.logical.TwoInputStates


                            // nothing consumed
                            forwardTo.getApplier()
                                    .checkAndPerformTriggers(forwardTo.getTriggers(), source, states, tpf);
                        } else {
                            // only key state consumed
                            final TwoInputStates forwardingState = new TwoInputStates(states.getPrevious(),
                                    new InputState(KeyboardState.NOTHING, states.getCurrent().getMouseState(), states
                                            .getCurrent().getControllerState()));
                            forwardTo.getApplier().checkAndPerformTriggers(forwardTo.getTriggers(), source,
                                    forwardingState, tpf);
                        }
                    } else {
                        if (!_keyInputConsumed) {
                            // only mouse consumed
                            final TwoInputStates forwardingState = new TwoInputStates(states.getPrevious(),
                                    new InputState(states.getCurrent().getKeyboardState(), MouseState.NOTHING, states
                                            .getCurrent().getControllerState()));
                            forwardTo.getApplier().checkAndPerformTriggers(forwardTo.getTriggers(), source,
                                    forwardingState, tpf);
                        } else {
View Full Code Here

TOP

Related Classes of com.ardor3d.input.logical.TwoInputStates

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.