Enum Class KeyCode

java.lang.Object
java.lang.Enum<KeyCode>
com.spinyowl.legui.input.KeyCode
All Implemented Interfaces:
Serializable, Comparable<KeyCode>, Constable

public enum KeyCode extends Enum<KeyCode>

Key code is code value of the physical key represented by the event.

NOTE: This ignores the user's keyboard layout, so that if the user presses the key at the "Y" position in a QWERTY keyboard layout (near the middle of the row above the home row), this will always return "KeyY", even if the user has a QWERTZ keyboard (which would mean the user expects a "Z" and all the other properties would indicate a "Z") or a Dvorak keyboard layout (where the user would expect an "F").

  • Enum Constant Details

    • UNKNOWN

      public static final KeyCode UNKNOWN
    • SPACE

      public static final KeyCode SPACE
    • APOSTROPHE

      public static final KeyCode APOSTROPHE
    • COMMA

      public static final KeyCode COMMA
    • MINUS

      public static final KeyCode MINUS
    • PERIOD

      public static final KeyCode PERIOD
    • SLASH

      public static final KeyCode SLASH
    • KEY_0

      public static final KeyCode KEY_0
    • KEY_1

      public static final KeyCode KEY_1
    • KEY_2

      public static final KeyCode KEY_2
    • KEY_3

      public static final KeyCode KEY_3
    • KEY_4

      public static final KeyCode KEY_4
    • KEY_5

      public static final KeyCode KEY_5
    • KEY_6

      public static final KeyCode KEY_6
    • KEY_7

      public static final KeyCode KEY_7
    • KEY_8

      public static final KeyCode KEY_8
    • KEY_9

      public static final KeyCode KEY_9
    • SEMICOLON

      public static final KeyCode SEMICOLON
    • EQUAL

      public static final KeyCode EQUAL
    • KEY_A

      public static final KeyCode KEY_A
    • KEY_B

      public static final KeyCode KEY_B
    • KEY_C

      public static final KeyCode KEY_C
    • KEY_D

      public static final KeyCode KEY_D
    • KEY_E

      public static final KeyCode KEY_E
    • KEY_F

      public static final KeyCode KEY_F
    • KEY_G

      public static final KeyCode KEY_G
    • KEY_H

      public static final KeyCode KEY_H
    • KEY_I

      public static final KeyCode KEY_I
    • KEY_J

      public static final KeyCode KEY_J
    • KEY_K

      public static final KeyCode KEY_K
    • KEY_L

      public static final KeyCode KEY_L
    • KEY_M

      public static final KeyCode KEY_M
    • KEY_N

      public static final KeyCode KEY_N
    • KEY_O

      public static final KeyCode KEY_O
    • KEY_P

      public static final KeyCode KEY_P
    • KEY_Q

      public static final KeyCode KEY_Q
    • KEY_R

      public static final KeyCode KEY_R
    • KEY_S

      public static final KeyCode KEY_S
    • KEY_T

      public static final KeyCode KEY_T
    • KEY_U

      public static final KeyCode KEY_U
    • KEY_V

      public static final KeyCode KEY_V
    • KEY_W

      public static final KeyCode KEY_W
    • KEY_X

      public static final KeyCode KEY_X
    • KEY_Y

      public static final KeyCode KEY_Y
    • KEY_Z

      public static final KeyCode KEY_Z
    • LEFT_BRACKET

      public static final KeyCode LEFT_BRACKET
    • BACKSLASH

      public static final KeyCode BACKSLASH
    • RIGHT_BRACKET

      public static final KeyCode RIGHT_BRACKET
    • GRAVE_ACCENT

      public static final KeyCode GRAVE_ACCENT
    • WORLD_1

      public static final KeyCode WORLD_1
    • WORLD_2

      public static final KeyCode WORLD_2
    • ESCAPE

      public static final KeyCode ESCAPE
    • ENTER

      public static final KeyCode ENTER
    • TAB

      public static final KeyCode TAB
    • BACKSPACE

      public static final KeyCode BACKSPACE
    • INSERT

      public static final KeyCode INSERT
    • DELETE

      public static final KeyCode DELETE
    • LEFT

      public static final KeyCode LEFT
    • DOWN

      public static final KeyCode DOWN
    • UP

      public static final KeyCode UP
    • PAGE_UP

      public static final KeyCode PAGE_UP
    • PAGE_DOWN

      public static final KeyCode PAGE_DOWN
    • HOME

      public static final KeyCode HOME
    • END

      public static final KeyCode END
    • CAPS_LOCK

      public static final KeyCode CAPS_LOCK
    • SCROLL_LOCK

      public static final KeyCode SCROLL_LOCK
    • NUM_LOCK

      public static final KeyCode NUM_LOCK
    • PAUSE

      public static final KeyCode PAUSE
    • KEY_F1

      public static final KeyCode KEY_F1
    • KEY_F2

      public static final KeyCode KEY_F2
    • KEY_F3

      public static final KeyCode KEY_F3
    • KEY_F4

      public static final KeyCode KEY_F4
    • KEY_F5

      public static final KeyCode KEY_F5
    • KEY_F6

      public static final KeyCode KEY_F6
    • KEY_F7

      public static final KeyCode KEY_F7
    • KEY_F8

      public static final KeyCode KEY_F8
    • KEY_F9

      public static final KeyCode KEY_F9
    • KEY_F10

      public static final KeyCode KEY_F10
    • KEY_F11

      public static final KeyCode KEY_F11
    • KEY_F12

      public static final KeyCode KEY_F12
    • KEY_F13

      public static final KeyCode KEY_F13
    • KEY_F14

      public static final KeyCode KEY_F14
    • KEY_F15

      public static final KeyCode KEY_F15
    • KEY_F16

      public static final KeyCode KEY_F16
    • KEY_F17

      public static final KeyCode KEY_F17
    • KEY_F18

      public static final KeyCode KEY_F18
    • KEY_F19

      public static final KeyCode KEY_F19
    • KEY_F20

      public static final KeyCode KEY_F20
    • KEY_F21

      public static final KeyCode KEY_F21
    • KEY_F22

      public static final KeyCode KEY_F22
    • KEY_F23

      public static final KeyCode KEY_F23
    • KEY_F24

      public static final KeyCode KEY_F24
    • KEY_F25

      public static final KeyCode KEY_F25
    • NUMPAD_0

      public static final KeyCode NUMPAD_0
    • NUMPAD_1

      public static final KeyCode NUMPAD_1
    • NUMPAD_2

      public static final KeyCode NUMPAD_2
    • NUMPAD_3

      public static final KeyCode NUMPAD_3
    • NUMPAD_4

      public static final KeyCode NUMPAD_4
    • NUMPAD_5

      public static final KeyCode NUMPAD_5
    • NUMPAD_6

      public static final KeyCode NUMPAD_6
    • NUMPAD_7

      public static final KeyCode NUMPAD_7
    • NUMPAD_8

      public static final KeyCode NUMPAD_8
    • NUMPAD_9

      public static final KeyCode NUMPAD_9
    • NUMPAD_DECIMAL

      public static final KeyCode NUMPAD_DECIMAL
    • NUMPAD_DIVIDE

      public static final KeyCode NUMPAD_DIVIDE
    • NUMPAD_MULTIPLY

      public static final KeyCode NUMPAD_MULTIPLY
    • NUMPAD_SUBTRACT

      public static final KeyCode NUMPAD_SUBTRACT
    • NUMPAD_ADD

      public static final KeyCode NUMPAD_ADD
    • NUMPAD_ENTER

      public static final KeyCode NUMPAD_ENTER
    • NUMPAD_EQUAL

      public static final KeyCode NUMPAD_EQUAL
    • LEFT_SHIFT

      public static final KeyCode LEFT_SHIFT
    • LEFT_CONTROL

      public static final KeyCode LEFT_CONTROL
    • LEFT_ALT

      public static final KeyCode LEFT_ALT
    • LEFT_SUPER

      public static final KeyCode LEFT_SUPER
    • RIGHT_SHIFT

      public static final KeyCode RIGHT_SHIFT
    • RIGHT_CONTROL

      public static final KeyCode RIGHT_CONTROL
    • RIGHT_ALT

      public static final KeyCode RIGHT_ALT
    • RIGHT_SUPER

      public static final KeyCode RIGHT_SUPER
    • KEY_MENU

      public static final KeyCode KEY_MENU
  • Method Details

    • values

      public static KeyCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static KeyCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null