Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: KeyCode

[14:14] static extends: object

Helper for the JavaFX KeyCode enum, used to bind keyboard triggers to UserActions through Input.addAction. The full set is listed in the JavaFX javadoc; common values include "A".."Z", "DIGIT0".. "DIGIT9", "SPACE", "ENTER", "ESCAPE", "TAB", "SHIFT", "CONTROL", "ALT", "UP", "DOWN", "LEFT", "RIGHT".

Methods

  • get (string Name)

    Resolves a KeyCode enum value by name.

    • @p Name is the KeyCode constant name (e.g. "SPACE", "A").
    • @r An AussomJavaObject wrapping the KeyCode value.