us.ihmc.graphics3DAdapter.input
Enum Key
java.lang.Object
java.lang.Enum<Key>
us.ihmc.graphics3DAdapter.input.Key
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Key>
public enum Key
- extends java.lang.Enum<Key>
Method Summary |
static Key |
fromKeyCode(int keyCode)
|
static Key |
fromString(java.lang.String keyName)
|
static Key |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Key[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
LEFT
public static final Key LEFT
RIGHT
public static final Key RIGHT
UP
public static final Key UP
DOWN
public static final Key DOWN
SHIFT
public static final Key SHIFT
CTRL
public static final Key CTRL
META
public static final Key META
ALT
public static final Key ALT
A
public static final Key A
B
public static final Key B
C
public static final Key C
D
public static final Key D
E
public static final Key E
F
public static final Key F
G
public static final Key G
H
public static final Key H
I
public static final Key I
J
public static final Key J
K
public static final Key K
L
public static final Key L
M
public static final Key M
N
public static final Key N
O
public static final Key O
P
public static final Key P
Q
public static final Key Q
R
public static final Key R
S
public static final Key S
T
public static final Key T
U
public static final Key U
V
public static final Key V
W
public static final Key W
X
public static final Key X
Y
public static final Key Y
Z
public static final Key Z
UNDEFINED
public static final Key UNDEFINED
values
public static Key[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Key c : Key.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Key valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
fromKeyCode
public static Key fromKeyCode(int keyCode)
- Parameters:
keyCode
-
- Returns:
- Corresponding key if found, else UNDEFINED. Add more if neccesary.
fromString
public static Key fromString(java.lang.String keyName)