Package com.jme3.input
Interface Input
- All Known Subinterfaces:
- JoyInput,- KeyInput,- MouseInput,- TouchInput
- All Known Implementing Classes:
- AndroidJoyInput,- AndroidJoyInput14,- AndroidTouchInput,- AndroidTouchInput14,- AWTInput,- AwtKeyInput,- AWTKeyInput,- AwtMouseInput,- AWTMouseInput,- DummyInput,- DummyKeyInput,- DummyMouseInput,- GlfwJoystickInput,- GlfwKeyInput,- GlfwKeyInputVR,- GlfwMouseInput,- GlfwMouseInputVR,- IosInputHandler,- JInputJoyInput,- LwjglKeyInput,- LwjglMouseInput
public interface Input
Abstract interface for an input device.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoiddestroy()Ceases listening to events from the device.longvoidInitializes the native side to listen into events from the device.booleanvoidsetInputListener(RawInputListener listener) Sets the input listener to receive events from this device.voidupdate()Queries the device for input.
- 
Method Details- 
initializevoid initialize()Initializes the native side to listen into events from the device.
- 
updatevoid update()Queries the device for input. All events should be sent to the RawInputListener set with setInputListener.
- 
destroyvoid destroy()Ceases listening to events from the device.
- 
isInitializedboolean isInitialized()- Returns:
- True if the device has been initialized and not destroyed.
- See Also:
 
- 
setInputListenerSets the input listener to receive events from this device. The appropriate events should be dispatched through the callbacks in RawInputListener.- Parameters:
- listener- the desired listener
 
- 
getInputTimeNanoslong getInputTimeNanos()- Returns:
- The current absolute time as nanoseconds. This time is expected to be relative to the time given in InputEvents time property.
 
 
-