de.lessvoid.nifty.nulldevice
Class NullInputSystem

java.lang.Object
  extended by de.lessvoid.nifty.nulldevice.NullInputSystem
All Implemented Interfaces:
InputSystem

public class NullInputSystem
extends Object
implements InputSystem


Constructor Summary
NullInputSystem()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullInputSystem

public NullInputSystem()
Method Detail

forwardEvents

public void forwardEvents(NiftyInputConsumer inputEventConsumer)
Description copied from interface: InputSystem
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.

Specified by:
forwardEvents in interface InputSystem
Parameters:
inputEventConsumer - the NiftyInputConsumer to forward input events to

setMousePosition

public void setMousePosition(int x,
                             int y)
Description copied from interface: InputSystem
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.

Specified by:
setMousePosition in interface InputSystem
Parameters:
x - x coordinate of mouse
y - y coordinate of mouse


Copyright © 2011. All Rights Reserved.