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()
Input
initialize
in interface Input
protected void initializeImpl()
public void update()
Input
update
in interface Input
Input.setInputListener(com.jme3.input.RawInputListener)
protected void updateImpl()
public void destroy()
Input
public boolean isInitialized()
isInitialized
in interface Input
Input.initialize()
,
Input.destroy()
public void setInputListener(RawInputListener listener)
Input
setInputListener
in interface Input
public long getInputTimeNanos()
getInputTimeNanos
in interface Input