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
-
- Object
- ActionBinding
- DualAxisComposite
Constructors
- DualAxisComposite(DualAxisAction action, {required InputSource up, required InputSource down, required InputSource left, required InputSource right})
-
Four buttons driving
actionas 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
- right → InputSource
-
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
sourcedrives, 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
kindandaction, which fromJson reads back.override -
toString(
) → String -
A string representation of this object.
inherited
-
withSource(
InputSource source, CompositePart? part) → DualAxisComposite -
This binding with
sourceonpart(or as its one source).override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited