| Constructor and Description |
|---|
KeyTrigger(int keyCode)
Create a new
KeyTrigger for the given keycode. |
| Modifier and Type | Method and Description |
|---|---|
int |
getKeyCode() |
java.lang.String |
getName() |
static int |
keyHash(int keyCode) |
int |
triggerHashCode()
Returns the hash code for the trigger.
|
public KeyTrigger(int keyCode)
KeyTrigger for the given keycode.keyCode - the code for the key, see constants in KeyInput.public java.lang.String getName()
public int getKeyCode()
public static int keyHash(int keyCode)
public int triggerHashCode()
TriggertriggerHashCode in interface Trigger