public abstract class InputManager
extends java.lang.Object
InputManager.Key| Modifier and Type | Class and Description |
|---|---|
static class |
InputManager.Key |
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.HashBiMap<java.lang.Integer,InputManager.Key> |
keys |
| Modifier | Constructor and Description |
|---|---|
protected |
InputManager() |
| Modifier and Type | Method and Description |
|---|---|
InputManager.Key |
getKey(int nativeKeyCode) |
int |
getNativeKeyCode(InputManager.Key key) |
abstract boolean |
isKeyDown(InputManager.Key key)
Is the key current down?
|
void |
mapKeys()
Extend this in order to map native key codes to NOVA's key enum.
|
protected com.google.common.collect.HashBiMap<java.lang.Integer,InputManager.Key> keys
public void mapKeys()
public InputManager.Key getKey(int nativeKeyCode)
public int getNativeKeyCode(InputManager.Key key)
public abstract boolean isKeyDown(InputManager.Key key)
key - The key to check.