KeyboardEvent class

A keyboard event.

SDL Docs

Inheritance
Mixed in types

Constructors

KeyboardEvent(Sdl sdl, int timestamp, int wndId, PressedState state, bool repeat, KeyboardKey key)
Create an event.
KeyboardEvent.fromSdlEvent(Sdl sdl, SDL_KeyboardEvent event)
Create an instance from an SDL event.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
key KeyboardKey
The keyboard key that was pressed or released.
final
repeat bool
Whether or not this event is a repeat.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdl Sdl
The SDL bindings to use for this event.
finalinherited
state PressedState
Whether key has been pressed or released.
final
timestamp int
The time this event was emitted.
finalinherited
window Window?
The window that emitted this event.
no setterinherited
windowId int
The ID of the window that emitted this event.
latefinalinherited

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