Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
unicode
The key Unicode character code (when relevant), shifted by modifier keys. Unicode character codes for composite characters and complex scripts may not be available unless IME input mode is active. See setImeActive(_:)
for more information.
final var unicode: Int64 { get set }
Other members in extension
Type members
Instance members
var echo: Bool
If
true
, the key was already pressed before this event. It means the user is holding the key down.var keyLabel: Key
Represents the localized label printed on the key in the current keyboard layout, which corresponds to one of the
Key
constants or any valid Unicode character.var keycode: Key
Latin label printed on the key in the current keyboard layout, which corresponds to one of the
Key
constants.var physicalKeycode: Key
Represents the physical location of a key on the 101/102-key US QWERTY keyboard, which corresponds to one of the
Key
constants.var pressed: Bool
If
true
, the key’s state is pressed. Iffalse
, the key’s state is released.func asTextKeyLabel(
) -> String Returns a
String
representation of the event’skeyLabel
and modifiers.func asTextKeycode(
) -> String Returns a
String
representation of the event’skeycode
and modifiers.func asTextPhysicalKeycode(
) -> String Returns a
String
representation of the event’sphysicalKeycode
and modifiers.func getKeyLabelWithModifiers(
) -> Key Returns the localized key label combined with modifier keys such as [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See also
InputEventWithModifiers
.func getKeycodeWithModifiers(
) -> Key Returns the Latin keycode combined with modifier keys such as [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See also
InputEventWithModifiers
.func getPhysicalKeycodeWithModifiers(
) -> Key Returns the physical keycode combined with modifier keys such as [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See also
InputEventWithModifiers
.