public boolean apply(final TwoInputStates states) { for (final Key k : keys) { if (states.getCurrent() != null && states.getCurrent().getKeyboardState().isDown(k)) { return true; } } return false; } };
public boolean apply(final TwoInputStates states) { for (final Key k : keys) { if (states.getCurrent() != null && states.getCurrent().getKeyboardState().isDown(k)) { return true; } } return false; } };
public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); return currentState.getMouseState().getButtonsClicked().contains(_button); } }
public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); final InputState previousState = states.getPrevious(); if (currentState == null) { return false; } if (currentState.equals(previousState)) { return false; } return currentState.getMouseState().getDwheel() != 0; } }
public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); final InputState previousState = states.getPrevious(); if (currentState == null) { return false; } if (currentState.equals(previousState)) { return false; } return currentState.getMouseState().getDwheel() != 0; } }
public boolean apply(final TwoInputStates twoInputStates) { final InputState currentState = twoInputStates.getCurrent(); final InputState previousState = twoInputStates.getPrevious(); return !currentState.getKeyboardState().getKeysPressedSince(previousState.getKeyboardState()).isEmpty(); } }
public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); final InputState previousState = states.getPrevious(); return currentState.getKeyboardState().getKeysReleasedSince(previousState.getKeyboardState()).contains(key); } }
public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); final InputState previousState = states.getPrevious(); return currentState.getKeyboardState().getKeysPressedSince(previousState.getKeyboardState()).contains(key); } }
public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); final InputState previousState = states.getPrevious(); return currentState.getKeyboardState().getKeysPressedSince(previousState.getKeyboardState()).contains(key); } }
public boolean apply(final TwoInputStates twoInputStates) { final InputState currentState = twoInputStates.getCurrent(); final InputState previousState = twoInputStates.getPrevious(); return !currentState.getKeyboardState().getKeysPressedSince(previousState.getKeyboardState()).isEmpty(); } }
public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); final InputState previousState = states.getPrevious(); if (currentState == null) { return false; } if (currentState.equals(previousState)) { return false; } return currentState.getMouseState().getDx() != 0 || currentState.getMouseState().getDy() != 0; } }
public boolean apply(final TwoInputStates states) { final ControllerState oldState = states.getPrevious().getControllerState(); final ControllerState currentState = states.getCurrent().getControllerState(); final boolean apply = !oldState.equals(currentState); return apply; }
public boolean apply(final TwoInputStates states) { final ControllerState oldState = states.getPrevious().getControllerState(); final ControllerState currentState = states.getCurrent().getControllerState(); final boolean apply = !oldState.equals(currentState); return apply; }
public void perform(final Canvas source, final TwoInputStates inputStates, final double tpf) { FirstPersonControl.this.move(source.getCanvasRenderer().getCamera(), inputStates.getCurrent() .getKeyboardState(), tpf); } };
public void perform(final Canvas source, final TwoInputStates inputStates, final double tpf) { FirstPersonControl.this.move(source.getCanvasRenderer().getCamera(), inputStates.getCurrent() .getKeyboardState(), tpf); } };
public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); final InputState previousState = states.getPrevious(); if (currentState == null || previousState == null || !previousState.getMouseState().hasButtonState(ButtonState.DOWN)) { return false; } return currentState.getMouseState().getButtonsReleasedSince(previousState.getMouseState()).contains(_button); } }
public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); final InputState previousState = states.getPrevious(); if (currentState == null || previousState == null || !currentState.getMouseState().hasButtonState(ButtonState.DOWN)) { return false; } return currentState.getMouseState().getButtonsPressedSince(previousState.getMouseState()).contains(_button); } }
public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); final InputState previousState = states.getPrevious(); if (currentState == null || previousState == null || !previousState.getMouseState().hasButtonState(ButtonState.DOWN)) { return false; } return currentState.getMouseState().getButtonsReleasedSince(previousState.getMouseState()).contains(_button); } }
public void perform(final Canvas source, final TwoInputStates inputStates, final double tpf) { final MouseState mouse = inputStates.getCurrent().getMouseState(); if (mouse.getDx() != 0 || mouse.getDy() != 0) { if (!firstPing) { FirstPersonControl.this.rotate(source.getCanvasRenderer().getCamera(), -mouse.getDx(), -mouse.getDy()); } else { firstPing = false; } } } };
public void perform(final Canvas source, final TwoInputStates inputStates, final double tpf) { final MouseState mouse = inputStates.getCurrent().getMouseState(); if (mouse.getDx() != 0 || mouse.getDy() != 0) { if (!firstPing) { FirstPersonControl.this.rotate(source.getCanvasRenderer().getCamera(), -mouse.getDx(), -mouse.getDy()); } else { firstPing = false; } } } };