org.jagatoo.input.devices.components
Enum KeyID
java.lang.Object
java.lang.Enum<KeyID>
org.jagatoo.input.devices.components.KeyID
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<KeyID>
public enum KeyID
- extends java.lang.Enum<KeyID>
This class provides a static final access to the standard
keys' key-IDs.
|
Method Summary |
Key |
getKey()
|
static KeyID |
valueOf(Key key)
|
static KeyID |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static KeyID[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ESCAPE
public static final KeyID ESCAPE
F1
public static final KeyID F1
F2
public static final KeyID F2
F3
public static final KeyID F3
F4
public static final KeyID F4
F5
public static final KeyID F5
F6
public static final KeyID F6
F7
public static final KeyID F7
F8
public static final KeyID F8
F9
public static final KeyID F9
F10
public static final KeyID F10
F11
public static final KeyID F11
F12
public static final KeyID F12
PRINTSCREEN
public static final KeyID PRINTSCREEN
PAUSE
public static final KeyID PAUSE
SCROLL_LOCK
public static final KeyID SCROLL_LOCK
CIRCUMFLEX
public static final KeyID CIRCUMFLEX
_0
public static final KeyID _0
_1
public static final KeyID _1
_2
public static final KeyID _2
_3
public static final KeyID _3
_4
public static final KeyID _4
_5
public static final KeyID _5
_6
public static final KeyID _6
_7
public static final KeyID _7
_8
public static final KeyID _8
_9
public static final KeyID _9
A
public static final KeyID A
B
public static final KeyID B
C
public static final KeyID C
D
public static final KeyID D
E
public static final KeyID E
F
public static final KeyID F
G
public static final KeyID G
H
public static final KeyID H
I
public static final KeyID I
J
public static final KeyID J
K
public static final KeyID K
L
public static final KeyID L
M
public static final KeyID M
N
public static final KeyID N
O
public static final KeyID O
P
public static final KeyID P
Q
public static final KeyID Q
R
public static final KeyID R
S
public static final KeyID S
T
public static final KeyID T
U
public static final KeyID U
V
public static final KeyID V
W
public static final KeyID W
X
public static final KeyID X
Y
public static final KeyID Y
Z
public static final KeyID Z
TAB
public static final KeyID TAB
SPACE
public static final KeyID SPACE
BACK_SPACE
public static final KeyID BACK_SPACE
ENTER
public static final KeyID ENTER
LEFT_SHIFT
public static final KeyID LEFT_SHIFT
RIGHT_SHIFT
public static final KeyID RIGHT_SHIFT
LEFT_CONTROL
public static final KeyID LEFT_CONTROL
RIGHT_CONTROL
public static final KeyID RIGHT_CONTROL
ALT
public static final KeyID ALT
ALT_GRAPH
public static final KeyID ALT_GRAPH
LEFT_META
public static final KeyID LEFT_META
RIGHT_META
public static final KeyID RIGHT_META
CAPS_LOCK
public static final KeyID CAPS_LOCK
DELETE
public static final KeyID DELETE
INSERT
public static final KeyID INSERT
END
public static final KeyID END
HOME
public static final KeyID HOME
PAGE_UP
public static final KeyID PAGE_UP
PAGE_DOWN
public static final KeyID PAGE_DOWN
RIGHT
public static final KeyID RIGHT
LEFT
public static final KeyID LEFT
UP
public static final KeyID UP
DOWN
public static final KeyID DOWN
NUM_LOCK
public static final KeyID NUM_LOCK
NUMPAD_DIVIDE
public static final KeyID NUMPAD_DIVIDE
NUMPAD_MULTIPLY
public static final KeyID NUMPAD_MULTIPLY
NUMPAD_SUBTRACT
public static final KeyID NUMPAD_SUBTRACT
NUMPAD_ADD
public static final KeyID NUMPAD_ADD
NUMPAD_ENTER
public static final KeyID NUMPAD_ENTER
NUMPAD_DECIMAL
public static final KeyID NUMPAD_DECIMAL
NUMPAD0
public static final KeyID NUMPAD0
NUMPAD1
public static final KeyID NUMPAD1
NUMPAD2
public static final KeyID NUMPAD2
NUMPAD3
public static final KeyID NUMPAD3
NUMPAD4
public static final KeyID NUMPAD4
NUMPAD5
public static final KeyID NUMPAD5
NUMPAD6
public static final KeyID NUMPAD6
NUMPAD7
public static final KeyID NUMPAD7
NUMPAD8
public static final KeyID NUMPAD8
NUMPAD9
public static final KeyID NUMPAD9
LOCAL_KEY1
public static final KeyID LOCAL_KEY1
- See Also:
Keys.LOCAL_KEY1
LOCAL_KEY2
public static final KeyID LOCAL_KEY2
- See Also:
Keys.LOCAL_KEY2
LOCAL_KEY3
public static final KeyID LOCAL_KEY3
- See Also:
Keys.LOCAL_KEY3
LOCAL_KEY4
public static final KeyID LOCAL_KEY4
- See Also:
Keys.LOCAL_KEY4
LOCAL_KEY5
public static final KeyID LOCAL_KEY5
- See Also:
Keys.LOCAL_KEY5
LOCAL_KEY6
public static final KeyID LOCAL_KEY6
- See Also:
Keys.LOCAL_KEY6
LOCAL_KEY7
public static final KeyID LOCAL_KEY7
- See Also:
Keys.LOCAL_KEY7
LOCAL_KEY8
public static final KeyID LOCAL_KEY8
- See Also:
Keys.LOCAL_KEY8
LOCAL_KEY9
public static final KeyID LOCAL_KEY9
- See Also:
Keys.LOCAL_KEY9
LOCAL_KEY10
public static final KeyID LOCAL_KEY10
- See Also:
Keys.LOCAL_KEY10
LOCAL_KEY11
public static final KeyID LOCAL_KEY11
- See Also:
Keys.LOCAL_KEY11
values
public static KeyID[] 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 (KeyID c : KeyID.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static KeyID 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
getKey
public final Key getKey()
- Returns:
- the corresponding
Key.
valueOf
public static final KeyID valueOf(Key key)
- Parameters:
key -
- Returns:
- the KeyID, that corresponds to the given Key.