public class InputSystemJme
extends java.lang.Object
implements de.lessvoid.nifty.spi.input.InputSystem, com.jme3.input.RawInputListener
| Constructor and Description |
|---|
InputSystemJme(com.jme3.input.InputManager inputManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginInput() |
void |
endInput() |
void |
forwardEvents(de.lessvoid.nifty.NiftyInputConsumer nic) |
void |
onJoyAxisEvent(com.jme3.input.event.JoyAxisEvent evt) |
void |
onJoyButtonEvent(com.jme3.input.event.JoyButtonEvent evt) |
void |
onKeyEvent(com.jme3.input.event.KeyInputEvent evt) |
void |
onMouseButtonEvent(com.jme3.input.event.MouseButtonEvent evt) |
void |
onMouseMotionEvent(com.jme3.input.event.MouseMotionEvent evt) |
void |
onTouchEvent(com.jme3.input.event.TouchEvent evt) |
void |
reset()
Reset internal state of the input system.
|
void |
setHeight(int height) |
void |
setMousePosition(int x,
int y) |
void |
setNifty(de.lessvoid.nifty.Nifty nifty)
Must be set in order for nifty events to be forwarded correctly.
|
void |
setResourceLoader(de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader niftyResourceLoader) |
public void setResourceLoader(de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader niftyResourceLoader)
setResourceLoader in interface de.lessvoid.nifty.spi.input.InputSystempublic void setNifty(de.lessvoid.nifty.Nifty nifty)
nifty - the Nifty instance to usepublic void reset()
public void setHeight(int height)
height - The height of the viewport. Used to convert
bottom-left origin to upper-left origin.public void setMousePosition(int x,
int y)
setMousePosition in interface de.lessvoid.nifty.spi.input.InputSystempublic void beginInput()
beginInput in interface com.jme3.input.RawInputListenerpublic void endInput()
endInput in interface com.jme3.input.RawInputListenerpublic void onMouseMotionEvent(com.jme3.input.event.MouseMotionEvent evt)
onMouseMotionEvent in interface com.jme3.input.RawInputListenerpublic void onMouseButtonEvent(com.jme3.input.event.MouseButtonEvent evt)
onMouseButtonEvent in interface com.jme3.input.RawInputListenerpublic void onJoyAxisEvent(com.jme3.input.event.JoyAxisEvent evt)
onJoyAxisEvent in interface com.jme3.input.RawInputListenerpublic void onJoyButtonEvent(com.jme3.input.event.JoyButtonEvent evt)
onJoyButtonEvent in interface com.jme3.input.RawInputListenerpublic void onKeyEvent(com.jme3.input.event.KeyInputEvent evt)
onKeyEvent in interface com.jme3.input.RawInputListenerpublic void onTouchEvent(com.jme3.input.event.TouchEvent evt)
onTouchEvent in interface com.jme3.input.RawInputListenerpublic void forwardEvents(de.lessvoid.nifty.NiftyInputConsumer nic)
forwardEvents in interface de.lessvoid.nifty.spi.input.InputSystem