NesKeyboardKeyMapping class

A model that defines the key mapping for the keyboard on the Nes Ui library.

Constructors

NesKeyboardKeyMapping({List<LogicalKeyboardKey> up = const [LogicalKeyboardKey.arrowUp], List<LogicalKeyboardKey> down = const [LogicalKeyboardKey.arrowDown], List<LogicalKeyboardKey> left = const [LogicalKeyboardKey.arrowLeft], List<LogicalKeyboardKey> right = const [LogicalKeyboardKey.arrowRight], List<LogicalKeyboardKey> confirm = const [LogicalKeyboardKey.enter, LogicalKeyboardKey.gameButtonA], List<LogicalKeyboardKey> cancel = const [LogicalKeyboardKey.escape, LogicalKeyboardKey.gameButtonB]})
A model that defines the key mapping for the keyboard on the Nes Ui library.
const

Properties

cancel List<LogicalKeyboardKey>
Key for the cancel action.
final
confirm List<LogicalKeyboardKey>
Key for the confirm action.
final
down List<LogicalKeyboardKey>
Key for the down selection.
final
hashCode int
The hash code for this object.
no setterinherited
left List<LogicalKeyboardKey>
Key for the left selection.
final
Key for the right selection.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
up List<LogicalKeyboardKey>
Key for the up selection.
final

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