de.lessvoid.nifty.nulldevice
Class NullInputSystem
java.lang.Object
de.lessvoid.nifty.nulldevice.NullInputSystem
- All Implemented Interfaces:
- InputSystem
public class NullInputSystem
- extends Object
- implements InputSystem
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. |
void |
setResourceLoader(NiftyResourceLoader niftyResourceLoader)
Gives this InputSystem access to the NiftyResourceLoader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullInputSystem
public NullInputSystem()
setResourceLoader
public void setResourceLoader(NiftyResourceLoader niftyResourceLoader)
- Description copied from interface:
InputSystem
- Gives this InputSystem access to the NiftyResourceLoader.
- Specified by:
setResourceLoader
in interface InputSystem
- Parameters:
niftyResourceLoader
- NiftyResourceLoader
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 mousey
- y coordinate of mouse
Copyright © 2012. All Rights Reserved.