com.jme3.input
Interface Input

All Known Subinterfaces:
JoyInput, KeyInput, MouseInput, TouchInput
All Known Implementing Classes:
AndroidInput, AwtKeyInput, AwtMouseInput, DummyInput, DummyKeyInput, DummyMouseInput, JInputJoyInput, LwjglKeyInput, LwjglMouseInput

public interface Input

Abstract interface for an input device.

See Also:
MouseInput, KeyInput, JoyInput

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.
 

Method Detail

initialize

void initialize()
Initializes the native side to listen into events from the device.


update

void update()
Queries the device for input. All events should be sent to the RawInputListener set with setInputListener.

See Also:
setInputListener(com.jme3.input.RawInputListener)

destroy

void destroy()
Ceases listening to events from the device.


isInitialized

boolean isInitialized()
Returns:
True if the device has been initialized and not destroyed.
See Also:
initialize(), destroy()

setInputListener

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

Parameters:
listener -

getInputTimeNanos

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