|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.input.controls.KeyTrigger
public class KeyTrigger
A KeyTrigger
is used as a mapping to keyboard keys.
Constructor Summary | |
---|---|
KeyTrigger(int keyCode)
Create a new KeyTrigger for the given keycode. |
Method Summary | |
---|---|
int |
getKeyCode()
|
java.lang.String |
getName()
|
static int |
keyHash(int keyCode)
|
int |
triggerHashCode()
Returns the hash code for the trigger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyTrigger(int keyCode)
KeyTrigger
for the given keycode.
keyCode
- the code for the key, see constants in KeyInput
.Method Detail |
---|
public java.lang.String getName()
getName
in interface Trigger
public int getKeyCode()
public static int keyHash(int keyCode)
public int triggerHashCode()
Trigger
triggerHashCode
in interface Trigger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |