de.lessvoid.nifty
Interface NiftyInputConsumer


public interface NiftyInputConsumer

NiftyInputConsumer consumes InputEvents from the InputSystem.

Author:
void

Method Summary
 boolean processKeyboardEvent(KeyboardInputEvent keyEvent)
          Process the given keyboard event.
 boolean processMouseEvent(int mouseX, int mouseY, int mouseWheel, int button, boolean buttonDown)
          Send the given mouse event to Nifty for processing.
 

Method Detail

processMouseEvent

boolean processMouseEvent(int mouseX,
                          int mouseY,
                          int mouseWheel,
                          int button,
                          boolean buttonDown)
Send the given mouse event to Nifty for processing.

Parameters:
mouseX - the mouse x position when the event occurred
mouseY - the mouse y position when the event occurred
mouseWheel - the mouse wheel event
button - the button that has been pressed with -1 = no button, 0 = first button, 1 = second button and so on
buttonDown - the button was pressed down (true) or has been released (false)
Returns:
true this event has been handled by nifty and false when not (in the later case this event should be processed by the caller)

processKeyboardEvent

boolean processKeyboardEvent(KeyboardInputEvent keyEvent)
Process the given keyboard event.

Parameters:
keyEvent - the keyboard event to process
Returns:
true, when the mouse event has been processed and false, if not


Copyright © 2011. All Rights Reserved.