* our two InputState objects, detailing a before and after snapshot of the input system.
* @return true if a UI element consumed the event described by inputStates.
*/
private boolean offerMouseInputToUI(final TwoInputStates inputStates) {
boolean consumed = false;
final InputState current = inputStates.getCurrent();
// Mouse checks.
if (!isIgnoreMouseInputOnGrabbed() || _mouseManager == null
|| _mouseManager.getGrabbed() != GrabbedState.GRABBED) {
final MouseState previousMState = inputStates.getPrevious().getMouseState();
final MouseState currentMState = current.getMouseState();
if (previousMState != currentMState) {
// Check for presses.
if (currentMState.hasButtonState(ButtonState.DOWN)) {
final EnumSet<MouseButton> pressed = currentMState.getButtonsPressedSince(previousMState);