GLFWKeyHelper class Null safety

Helper class that uses GLFW-specific key mappings.

Implemented types

Constructors

GLFWKeyHelper()

Properties

debugToolkit String
Returns the name for the toolkit.
read-onlyoverride
hashCode int
The hash code for this object.
read-onlyinherited
platformPlane int
The platform plane mask value of this platform.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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.
override
isModifierPressed(ModifierKey key, int modifiers, {KeyboardSide side = KeyboardSide.any, required int keyCode, required bool isDown}) bool
Returns true if the given ModifierKey was pressed at the time of this event.
override
logicalKey(int keyCode) LogicalKeyboardKey?
The logical key from the specific key code mapping.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
numpadKey(int keyCode) LogicalKeyboardKey?
The numpad key from the specific key code mapping.
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

modifierAlt → const int
This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether one of the ALT modifier keys is pressed.
0x0004
modifierCapsLock → const int
This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether the CAPS LOCK modifier key is on.
0x0010
modifierControl → const int
This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether one of the CTRL modifier keys is pressed.
0x0002
modifierMeta → const int
This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether one of the Meta(SUPER) modifier keys is pressed.
0x0008
modifierNumericPad → const int
This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether any key in the numeric keypad is pressed.
0x0020
modifierShift → const int
This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether one of the SHIFT modifier keys is pressed.
0x0001