public boolean apply(final TwoInputStates states) { final InputState currentState = states.getCurrent(); return currentState.getMouseState().getButtonsClicked().contains(_button); } }
public boolean apply(final TwoInputStates states) { final MouseState currentState = states.getCurrent().getMouseState(); final MouseState previousState = states.getPrevious().getMouseState(); return !currentState.getButtonsReleasedSince(previousState).isEmpty() && currentState.getButtonsClicked().contains(_button); } }