public class AWTInput
extends java.lang.Object
implements com.jme3.input.Input
Input dedicated to AWT component.
This class is based on the JavaFX original code provided by Alexander Brui (see JME3-FX)
| Modifier and Type | Field and Description |
|---|---|
protected com.jme3.app.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 com.jme3.input.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() |
long |
getInputTimeNanos() |
void |
initialize() |
protected void |
initializeImpl() |
boolean |
isInitialized() |
void |
setInputListener(com.jme3.input.RawInputListener listener) |
void |
unbind() |
void |
update() |
protected void |
updateImpl() |
protected static final AWTTaskExecutor EXECUTOR
protected final AWTContext context
protected com.jme3.input.RawInputListener listener
protected java.awt.Component component
protected com.jme3.app.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()
initialize in interface com.jme3.input.Inputprotected void initializeImpl()
public void update()
update in interface com.jme3.input.Inputprotected void updateImpl()
public void destroy()
destroy in interface com.jme3.input.Inputpublic boolean isInitialized()
isInitialized in interface com.jme3.input.Inputpublic void setInputListener(com.jme3.input.RawInputListener listener)
setInputListener in interface com.jme3.input.Inputpublic long getInputTimeNanos()
getInputTimeNanos in interface com.jme3.input.Input