DualAxisComposite class final

Four buttons as one DualAxisAction — WASD as a direction, never longer than one, so a diagonal is no faster than straight ahead.

Inheritance

Constructors

DualAxisComposite(DualAxisAction action, {required InputSource up, required InputSource down, required InputSource left, required InputSource right})
Four buttons driving action as a direction.
const

Properties

action → DualAxisAction
The action this binding drives.
final
down → InputSource
The button for the downward direction, y minus one; InputSource.none when unbound.
final
hashCode → int
The hash code for this object.
no setterinherited
left → InputSource
The button for the leftward direction, x minus one; InputSource.none when unbound.
final
The button for the rightward direction, x plus one; InputSource.none when unbound.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sources → List<InputSource>
Every source this binding listens to, InputSource.none left out.
no setteroverride
up → InputSource
The button for the upward direction, y plus one; InputSource.none when unbound.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
partOf(InputSource source) → CompositePart?
The part source drives, for a composite; null otherwise.
override
sourceAt(CompositePart? part) → InputSource
The source on part, for a composite; the one source otherwise.
override
toJson() → Map<String, Object?>
The binding as JSON, with its kind and action, which fromJson reads back.
override
toString() → String
A string representation of this object.
inherited
withSource(InputSource source, CompositePart? part) → DualAxisComposite
This binding with source on part (or as its one source).
override

Operators

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