java.lang.Object
java.lang.Enum<Key>
fr.r1r0r0.deltaengine.model.engines.utils.Key
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Key>, java.lang.constant.Constable

public enum Key
extends java.lang.Enum<Key>
All keys of a keyboard handled by the engine
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    A  
    ALT  
    ALT_GR  
    ARROW_DOWN  
    ARROW_LEFT  
    ARROW_RIGHT  
    ARROW_UP  
    B  
    BACK_SPACE  
    C  
    CTRL  
    D  
    E  
    EIGHT  
    ENTER  
    ESCAPE  
    F  
    FIVE  
    FOUR  
    G  
    H  
    I  
    J  
    K  
    L  
    M  
    N  
    NINE  
    O  
    ONE  
    P  
    Q  
    R  
    S  
    SEVEN  
    SHIFT  
    SIX  
    T  
    TAB  
    THREE  
    TWO  
    U  
    V  
    W  
    X  
    Y  
    Z  
    ZERO  
  • Field Summary

    Fields
    Modifier and Type Field Description
    private javafx.scene.input.KeyCode jfxKey  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private Key​(javafx.scene.input.KeyCode key)  
  • Method Summary

    Modifier and Type Method Description
    javafx.scene.input.KeyCode getJFXInput()
    Converts Engine Key to Graphic API Key
    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

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • A

      public static final Key A
    • Z

      public static final Key Z
    • E

      public static final Key E
    • R

      public static final Key R
    • T

      public static final Key T
    • Y

      public static final Key Y
    • U

      public static final Key U
    • I

      public static final Key I
    • O

      public static final Key O
    • P

      public static final Key P
    • Q

      public static final Key Q
    • S

      public static final Key S
    • D

      public static final Key D
    • F

      public static final Key F
    • G

      public static final Key G
    • H

      public static final Key H
    • J

      public static final Key J
    • K

      public static final Key K
    • L

      public static final Key L
    • M

      public static final Key M
    • W

      public static final Key W
    • X

      public static final Key X
    • C

      public static final Key C
    • V

      public static final Key V
    • B

      public static final Key B
    • N

      public static final Key N
    • ARROW_UP

      public static final Key ARROW_UP
    • ARROW_LEFT

      public static final Key ARROW_LEFT
    • ARROW_DOWN

      public static final Key ARROW_DOWN
    • ARROW_RIGHT

      public static final Key ARROW_RIGHT
    • ONE

      public static final Key ONE
    • TWO

      public static final Key TWO
    • THREE

      public static final Key THREE
    • FOUR

      public static final Key FOUR
    • FIVE

      public static final Key FIVE
    • SIX

      public static final Key SIX
    • SEVEN

      public static final Key SEVEN
    • EIGHT

      public static final Key EIGHT
    • NINE

      public static final Key NINE
    • ZERO

      public static final Key ZERO
    • ENTER

      public static final Key ENTER
    • BACK_SPACE

      public static final Key BACK_SPACE
    • ESCAPE

      public static final Key ESCAPE
    • CTRL

      public static final Key CTRL
    • SHIFT

      public static final Key SHIFT
    • ALT

      public static final Key ALT
    • ALT_GR

      public static final Key ALT_GR
    • TAB

      public static final Key TAB
  • Field Details

    • jfxKey

      private final javafx.scene.input.KeyCode jfxKey
  • Constructor Details

    • Key

      private Key​(javafx.scene.input.KeyCode key)
  • Method Details

    • values

      public static Key[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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
    • getJFXInput

      public javafx.scene.input.KeyCode getJFXInput()
      Converts Engine Key to Graphic API Key
      Returns: