com.jme3.input
インタフェース Input

既知のサブインタフェースの一覧:
JoyInput, KeyInput, MouseInput, TouchInput
既知の実装クラスの一覧:
DummyInput, DummyKeyInput, DummyMouseInput

public interface Input

Abstract interface for an input device.

関連項目:
MouseInput, KeyInput, JoyInput

メソッドの概要
 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.
 

メソッドの詳細

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.

関連項目:
setInputListener(com.jme3.input.RawInputListener)

destroy

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


isInitialized

boolean isInitialized()
戻り値:
True if the device has been initialized and not destroyed.
関連項目:
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.

パラメータ:
listener -

getInputTimeNanos

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