de.lessvoid.nifty.slick2d.input.InputState Maven / Gradle / Ivy
package de.lessvoid.nifty.slick2d.input;
/**
* This small class is able to store some states that are needed for the communication between different input events.
*
* @author Martin Karing <[email protected]>
*/
public final class InputState {
/**
* In case this state is switched to {@code true} the next click events needs to be consumed entirely.
*/
private boolean consumeNextClick;
/**
* Check if the next click event needs to be consumed.
*
* @return {@code true} if the next click event needs to be consumed
*/
public boolean isConsumeNextClick() {
return consumeNextClick;
}
/**
* Set the consume next input event flag.
*
* @param value {@code true} in case the next input event is supposed to be consumed
*/
public void setConsumeNextClick(final boolean value) {
consumeNextClick = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy