public class NullInputSystem extends Object implements InputSystem
Constructor and Description |
---|
NullInputSystem() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void setResourceLoader(NiftyResourceLoader niftyResourceLoader)
InputSystem
setResourceLoader
in interface InputSystem
niftyResourceLoader
- NiftyResourceLoaderpublic void forwardEvents(NiftyInputConsumer inputEventConsumer)
InputSystem
forwardEvents
in interface InputSystem
inputEventConsumer
- the NiftyInputConsumer to forward input events topublic void setMousePosition(int x, int y)
InputSystem
setMousePosition
in interface InputSystem
x
- x coordinate of mousey
- y coordinate of mouseCopyright © 2013. All Rights Reserved.