public class AWTInput extends java.lang.Object implements Input
| Modifier and Type | Field and Description |
|---|---|
protected Application |
application
The
JMonkey application that provide the context. |
protected java.awt.Component |
component
The input node.
|
protected AWTContext |
context
The context.
|
protected static AWTTaskExecutor |
EXECUTOR |
protected boolean |
initialized
Initializes is it.
|
protected RawInputListener |
listener
The raw listener.
|
| Constructor and Description |
|---|
AWTInput(AWTContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(java.awt.Component component) |
void |
destroy()
Ceases listening to events from the device.
|
long |
getInputTimeNanos() |
void |
initialize()
Initializes the native side to listen into events from the device.
|
protected void |
initializeImpl() |
boolean |
isInitialized() |
void |
setInputListener(RawInputListener listener)
Sets the input listener to receive events from this device.
|
void |
unbind() |
void |
update()
Queries the device for input.
|
protected void |
updateImpl() |
protected static final AWTTaskExecutor EXECUTOR
protected final AWTContext context
protected RawInputListener listener
protected java.awt.Component component
protected Application application
JMonkey application that provide the context.protected boolean initialized
public AWTInput(AWTContext context)
public void bind(java.awt.Component component)
public void unbind()
public void initialize()
Inputinitialize in interface Inputprotected void initializeImpl()
public void update()
Inputupdate in interface InputInput.setInputListener(com.jme3.input.RawInputListener)protected void updateImpl()
public void destroy()
Inputpublic boolean isInitialized()
isInitialized in interface InputInput.initialize(),
Input.destroy()public void setInputListener(RawInputListener listener)
InputsetInputListener in interface Inputlistener - the desired listenerpublic long getInputTimeNanos()
getInputTimeNanos in interface Input