Enum Class Key

java.lang.Object
java.lang.Enum<Key>
dev.prozilla.pine.core.state.input.Key
All Implemented Interfaces:
Serializable, Comparable<Key>, Constable

public enum Key extends Enum<Key>
Mappings for GLFW integer values for keyboard keys based on the US keyboard layout. See: GLFW: Keyboard key tokens
  • Enum Constant Details

    • SPACE

      public static final Key SPACE
    • ESCAPE

      public static final Key ESCAPE
    • ENTER

      public static final Key ENTER
    • TAB

      public static final Key TAB
    • CAPS_LOCK

      public static final Key CAPS_LOCK
    • SCROLL_LOCK

      public static final Key SCROLL_LOCK
    • NUM_LOCK

      public static final Key NUM_LOCK
    • BACKSPACE

      public static final Key BACKSPACE
    • L_SHIFT

      public static final Key L_SHIFT
    • L_CONTROL

      public static final Key L_CONTROL
    • L_ALT

      public static final Key L_ALT
    • L_SUPER

      public static final Key L_SUPER
    • R_SHIFT

      public static final Key R_SHIFT
    • R_CONTROL

      public static final Key R_CONTROL
    • R_ALT

      public static final Key R_ALT
    • R_SUPER

      public static final Key R_SUPER
    • 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
    • NUM_0

      public static final Key NUM_0
    • NUM_1

      public static final Key NUM_1
    • NUM_2

      public static final Key NUM_2
    • NUM_3

      public static final Key NUM_3
    • NUM_4

      public static final Key NUM_4
    • NUM_5

      public static final Key NUM_5
    • NUM_6

      public static final Key NUM_6
    • NUM_7

      public static final Key NUM_7
    • NUM_8

      public static final Key NUM_8
    • NUM_9

      public static final Key NUM_9
    • NUMPAD_0

      public static final Key NUMPAD_0
    • NUMPAD_1

      public static final Key NUMPAD_1
    • NUMPAD_2

      public static final Key NUMPAD_2
    • NUMPAD_3

      public static final Key NUMPAD_3
    • NUMPAD_4

      public static final Key NUMPAD_4
    • NUMPAD_5

      public static final Key NUMPAD_5
    • NUMPAD_6

      public static final Key NUMPAD_6
    • NUMPAD_7

      public static final Key NUMPAD_7
    • NUMPAD_8

      public static final Key NUMPAD_8
    • NUMPAD_9

      public static final Key NUMPAD_9
    • NUMPAD_DECIMAL

      public static final Key NUMPAD_DECIMAL
    • NUMPAD_DIVIDE

      public static final Key NUMPAD_DIVIDE
    • NUMPAD_MULTIPLY

      public static final Key NUMPAD_MULTIPLY
    • NUMPAD_SUBTRACT

      public static final Key NUMPAD_SUBTRACT
    • NUMPAD_ADD

      public static final Key NUMPAD_ADD
    • NUMPAD_ENTER

      public static final Key NUMPAD_ENTER
    • NUMPAD_EQUAL

      public static final Key NUMPAD_EQUAL
    • F1

      public static final Key F1
    • F2

      public static final Key F2
    • F3

      public static final Key F3
    • F4

      public static final Key F4
    • F5

      public static final Key F5
    • F6

      public static final Key F6
    • F7

      public static final Key F7
    • F8

      public static final Key F8
    • F9

      public static final Key F9
    • F10

      public static final Key F10
    • F11

      public static final Key F11
    • F12

      public static final Key F12
    • F13

      public static final Key F13
    • F14

      public static final Key F14
    • F15

      public static final Key F15
    • F16

      public static final Key F16
    • F17

      public static final Key F17
    • F18

      public static final Key F18
    • F19

      public static final Key F19
    • F20

      public static final Key F20
    • F21

      public static final Key F21
    • F22

      public static final Key F22
    • F23

      public static final Key F23
    • F24

      public static final Key F24
    • F25

      public static final Key F25
    • DELETE

      public static final Key DELETE
    • INSERT

      public static final Key INSERT
    • PAGE_UP

      public static final Key PAGE_UP
    • PAGE_DOWN

      public static final Key PAGE_DOWN
    • HOME

      public static final Key HOME
    • END

      public static final Key END
    • LEFT_ARROW

      public static final Key LEFT_ARROW
    • RIGHT_ARROW

      public static final Key RIGHT_ARROW
    • UP_ARROW

      public static final Key UP_ARROW
    • DOWN_ARROW

      public static final Key DOWN_ARROW
    • PAUSE

      public static final Key PAUSE
    • APOSTROPHE

      public static final Key APOSTROPHE
    • COMMA

      public static final Key COMMA
    • MINUS

      public static final Key MINUS
    • PERIOD

      public static final Key PERIOD
    • SLASH

      public static final Key SLASH
    • SEMICOLON

      public static final Key SEMICOLON
    • EQUAL

      public static final Key EQUAL
    • L_BRACKET

      public static final Key L_BRACKET
    • R_BRACKET

      public static final Key R_BRACKET
    • GRAVE_ACCENT

      public static final Key GRAVE_ACCENT
    • WORLD_1

      public static final Key WORLD_1
    • WORLD_2

      public static final Key WORLD_2
  • Method Details

    • values

      public static Key[] 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 Key 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
    • getValue

      public int getValue()
    • isValid

      public static boolean isValid(int value)
      Checks if a given value is a valid value for a GLFW key.
      Parameters:
      value - Value to test
      Returns:
      True if the value is a valid value