Package com.jme3.input
Class AWTInput
java.lang.Object
com.jme3.input.AWTInput
- All Implemented Interfaces:
com.jme3.input.Input
- Direct Known Subclasses:
AWTKeyInput,AWTMouseInput
The implementation of the
Input dedicated to AWT component.
This class is based on the JavaFX original code provided by Alexander Brui (see JME3-FX)
- Author:
- Julien Seinturier - COMEX SA - http://www.seinturier.fr, Alexander Brui (JavaSaBr)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.jme3.app.ApplicationTheJMonkey applicationthat provide the context.protected ComponentThe input node.protected final AWTContextThe context.protected static final AWTTaskExecutorprotected booleanInitializes is it.protected com.jme3.input.RawInputListenerThe raw listener. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()longvoidprotected voidbooleanvoidsetInputListener(com.jme3.input.RawInputListener listener) voidunbind()voidupdate()protected void
-
Field Details
-
EXECUTOR
-
context
The context. -
listener
protected com.jme3.input.RawInputListener listenerThe raw listener. -
component
The input node. -
application
protected com.jme3.app.Application applicationTheJMonkey applicationthat provide the context. -
initialized
protected boolean initializedInitializes is it.
-
-
Constructor Details
-
AWTInput
-
-
Method Details
-
bind
-
unbind
public void unbind() -
initialize
public void initialize()- Specified by:
initializein interfacecom.jme3.input.Input
-
initializeImpl
protected void initializeImpl() -
update
public void update()- Specified by:
updatein interfacecom.jme3.input.Input
-
updateImpl
protected void updateImpl() -
destroy
public void destroy()- Specified by:
destroyin interfacecom.jme3.input.Input
-
isInitialized
public boolean isInitialized()- Specified by:
isInitializedin interfacecom.jme3.input.Input
-
setInputListener
public void setInputListener(com.jme3.input.RawInputListener listener) - Specified by:
setInputListenerin interfacecom.jme3.input.Input
-
getInputTimeNanos
public long getInputTimeNanos()- Specified by:
getInputTimeNanosin interfacecom.jme3.input.Input
-