KeyHelper class

Abstract class for window-specific key mappings.

Given that there might be multiple window toolkit implementations (GLFW, GTK, QT, etc), this creates a common interface for each of the different toolkits.

Implementers

Constructors

KeyHelper(String toolkit)
Create a KeyHelper implementation depending on the given toolkit.
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getModifierSide(ModifierKey key) KeyboardSide
Returns a KeyboardSide enum value that describes which side or sides of the given keyboard modifier key were pressed at the time of this event.
isModifierPressed(ModifierKey key, int modifiers, { KeyboardSide side: KeyboardSide.any }) bool
Returns true if the given ModifierKey was pressed at the time of this event.
logicalKey(int keyCode) LogicalKeyboardKey
The logical key key from the specific key code mapping.
numpadKey(int keyCode) LogicalKeyboardKey
The numpad key from the specific key code mapping.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited