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. 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
    • L_SHIFT

      public static final Key L_SHIFT
    • L_CONTROL

      public static final Key L_CONTROL
    • L_ALT

      public static final Key L_ALT
    • R_SHIFT

      public static final Key R_SHIFT
    • R_CONTROL

      public static final Key R_CONTROL
    • R_ALT

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