|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.input.awt.AwtKeyInput
public class AwtKeyInput
AwtKeyInput
Field Summary |
---|
Constructor Summary | |
---|---|
AwtKeyInput()
|
Method Summary | |
---|---|
static int |
convertAwtKey(int key)
convertAwtKey converts AWT key codes to KeyInput key codes. |
static int |
convertJmeCode(int key)
convertJmeCode converts KeyInput key codes to AWT key codes. |
void |
destroy()
Ceases listening to events from the device. |
long |
getInputTimeNanos()
|
int |
getKeyCount()
|
void |
initialize()
Initializes the native side to listen into events from the device. |
boolean |
isInitialized()
|
void |
keyPressed(java.awt.event.KeyEvent evt)
|
void |
keyReleased(java.awt.event.KeyEvent evt)
|
void |
keyTyped(java.awt.event.KeyEvent evt)
|
void |
setInputListener(RawInputListener listener)
Sets the input listener to receive events from this device. |
void |
setInputSource(java.awt.Component comp)
|
void |
update()
Queries the device for input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AwtKeyInput()
Method Detail |
---|
public void initialize()
Input
initialize
in interface Input
public void destroy()
Input
destroy
in interface Input
public void setInputSource(java.awt.Component comp)
public long getInputTimeNanos()
getInputTimeNanos
in interface Input
public int getKeyCount()
public void update()
Input
update
in interface Input
Input.setInputListener(com.jme3.input.RawInputListener)
public boolean isInitialized()
isInitialized
in interface Input
Input.initialize()
,
Input.destroy()
public void setInputListener(RawInputListener listener)
Input
setInputListener
in interface Input
public void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
public static int convertJmeCode(int key)
convertJmeCode
converts KeyInput key codes to AWT key codes.
key
- jme KeyInput key code
public static int convertAwtKey(int key)
convertAwtKey
converts AWT key codes to KeyInput key codes.
key
- awt KeyEvent key code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |