| Modifier and Type | Method and Description |
|---|---|
static Key |
Key.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Key[] |
Key.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
InputAdapter.getKey(Key key)
Whether the key is currently pressed
|
boolean |
InputAdapter.getKeyDown(Key key)
Whether the key is currently pressed.
|
boolean |
InputAdapter.getKeyUp(Key key)
Returns true when the key has just been released
|
| Modifier and Type | Field and Description |
|---|---|
protected Key |
KeyTrigger.onKey |
| Modifier and Type | Method and Description |
|---|---|
Key |
KeyTrigger.get() |
| Constructor and Description |
|---|
KeyTrigger(Key onKey)
Creates a new KeyTrigger, with a key and triggers on
key
KeyTrigger.Type.DOWN |
KeyTrigger(Key onKey,
KeyTrigger.Type type)
Creates a new KeyTrigger, with a key and triggers on
the given
KeyTrigger.Type |
| Constructor and Description |
|---|
KeyTriggerList(Key... trigger) |
| Modifier and Type | Field and Description |
|---|---|
protected Key |
KeyEvent.key |
| Modifier and Type | Field and Description |
|---|---|
protected Key |
SimpleMover.backKey |
protected Key |
FlyMover.downKey |
protected Key |
SimpleMover.forwardKey |
protected Key |
SimpleMover.leftKey |
protected Key |
SimpleMover.rightKey |
protected Key |
MouseLook.unlockKey |
protected Key |
FlyMover.upKey |
| Constructor and Description |
|---|
FlyMover(float speed,
Key upKey,
Key downKey)
Initialize a FlyMover with a specific key binding
|
HumanMover(float speed,
Key forwardKey,
Key backKey,
Key leftKey,
Key rightKey)
Initialize a HumanMover with a specific key binding
|
MouseLook(float sensitivity,
Key unlockKey) |
SimpleMover(float speed,
Key forwardKey,
Key backKey,
Key leftKey,
Key rightKey)
Initialize a SimpleMover with a specific key binding
|
| Modifier and Type | Field and Description |
|---|---|
static Map<Integer,Key> |
LWJGLInput.integerKeyMap |
static Map<Key,Integer> |
LWJGLInput.keyIntegerMap |
| Modifier and Type | Method and Description |
|---|---|
protected Key |
LWJGLInput.toKey(int key) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
LWJGLInput.getKey(Key key) |
boolean |
LWJGLInput.getKeyDown(Key key) |
boolean |
LWJGLInput.getKeyUp(Key key) |
protected int |
LWJGLInput.toInt(Key key) |
Copyright © 2014. All rights reserved.