de.lessvoid.nifty.spi.input
Interface InputSystem

All Known Implementing Classes:
NullInputSystem

public interface InputSystem

Interface for Niftys InputSystem.

Author:
void

Method Summary
 void forwardEvents(NiftyInputConsumer inputEventConsumer)
          This method is called by Nifty when it's ready to process input events.
 void setMousePosition(int x, int y)
          This allows Nifty to set the position of the mouse to the given coordinate with (0,0) being the upper left corner of the screen.
 

Method Detail

forwardEvents

void forwardEvents(NiftyInputConsumer inputEventConsumer)
This method is called by Nifty when it's ready to process input events. The InputSystem implementation should call the methods on the given NiftyInputConsumer to forward events to Nifty.

Parameters:
inputEventConsumer - the NiftyInputConsumer to forward input events to

setMousePosition

void setMousePosition(int x,
                      int y)
This allows Nifty to set the position of the mouse to the given coordinate with (0,0) being the upper left corner of the screen.

Parameters:
x - x coordinate of mouse
y - y coordinate of mouse


Copyright © 2011. All Rights Reserved.