class openfl.ui.Keyboard
Available on all platforms
The Keyboard class is used to build an interface that can be controlled by a user with a standard keyboard. You can use the methods and properties of the Keyboard class without using a constructor. The properties of the Keyboard class are constants representing the keys that are most commonly used to control games.
Class Fields
Constant associated with the Mac command key(15). This constant is currently only used for setting menu key equivalents.
Constant associated with the pseudo-key code for the the number pad(21). Use to set numpad modifier on key equivalents
static var NUMPAD_ADD:Int
Constant associated with the key code value for the addition key on the number pad(107).
static var NUMPAD_DECIMAL:Int
Constant associated with the key code value for the decimal key on the number pad(110).
static var NUMPAD_DIVIDE:Int
Constant associated with the key code value for the division key on the number pad(111).
static var NUMPAD_ENTER:Int
Constant associated with the key code value for the Enter key on the number pad(108).
static var NUMPAD_MULTIPLY:Int
Constant associated with the key code value for the multiplication key on the number pad(106).
static var NUMPAD_SUBTRACT:Int
Constant associated with the key code value for the subtraction key on the number pad(109).
static function isAccessible():Bool
Specifies whether the last key pressed is accessible by other SWF files. By default, security restrictions prevent code from a SWF file in one domain from accessing a keystroke generated from a SWF file in another domain.
returns | The value |