Package com.jme3.input.controls
Class KeyTrigger
java.lang.Object
com.jme3.input.controls.KeyTrigger
- All Implemented Interfaces:
Trigger
A
KeyTrigger
is used as a mapping to keyboard keys.-
Constructor Details
-
KeyTrigger
public KeyTrigger(int keyCode) Create a newKeyTrigger
for the given keycode.- Parameters:
keyCode
- the code for the key, see constants inKeyInput
.
-
-
Method Details
-
getName
-
getKeyCode
public int getKeyCode() -
keyHash
public static int keyHash(int keyCode) -
triggerHashCode
public int triggerHashCode()Description copied from interface:Trigger
Returns the hash code for the trigger.- Specified by:
triggerHashCode
in interfaceTrigger
- Returns:
- the hash code for the trigger.
-