com.jme3.input.dummy
Class DummyInput

java.lang.Object
  extended by com.jme3.input.dummy.DummyInput
All Implemented Interfaces:
Input
Direct Known Subclasses:
DummyKeyInput, DummyMouseInput

public class DummyInput
extends java.lang.Object
implements Input

DummyInput as an implementation of Input that raises no input events.


Field Summary
protected  boolean inited
           
 
Constructor Summary
DummyInput()
           
 
Method Summary
 void destroy()
          Ceases listening to events from the device.
 long getInputTimeNanos()
           
 void initialize()
          Initializes the native side to listen into events from the device.
 boolean isInitialized()
           
 void setInputListener(RawInputListener listener)
          Sets the input listener to receive events from this device.
 void update()
          Queries the device for input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inited

protected boolean inited
Constructor Detail

DummyInput

public DummyInput()
Method Detail

initialize

public void initialize()
Description copied from interface: Input
Initializes the native side to listen into events from the device.

Specified by:
initialize in interface Input

update

public void update()
Description copied from interface: Input
Queries the device for input. All events should be sent to the RawInputListener set with setInputListener.

Specified by:
update in interface Input
See Also:
Input.setInputListener(com.jme3.input.RawInputListener)

destroy

public void destroy()
Description copied from interface: Input
Ceases listening to events from the device.

Specified by:
destroy in interface Input

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface Input
Returns:
True if the device has been initialized and not destroyed.
See Also:
Input.initialize(), Input.destroy()

setInputListener

public void setInputListener(RawInputListener listener)
Description copied from interface: Input
Sets the input listener to receive events from this device. The appropriate events should be dispatched through the callbacks in RawInputListener.

Specified by:
setInputListener in interface Input

getInputTimeNanos

public long getInputTimeNanos()
Specified by:
getInputTimeNanos in interface Input
Returns:
The current absolute time as nanoseconds. This time is expected to be relative to the time given in InputEvents time property.