GKeyboard class

This class provides utility methods to work with keyboard events.

Constructors

GKeyboard()
Factory constructor to ensure exception. Throws an exception if an attempt is made to instantiate this class.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

anyDown(Iterable<GKey> keys) bool
Returns true if any of the specified GKey instances are currently pressed.
dispose() → void
Disposes of the GKeyboard utility class.
init(Stage stage) → void
Initializes the GKeyboard utility class.
isDown(GKey key) bool
Returns true if the specified GKey instance is currently pressed.
justReleased(GKey key) bool
Checks if a key has been released and returns a boolean value.