RoverControls class abstract

A class that controls one subsystem based on the gamepad state.

To use this class, subclass it and implement parseInputs. Be sure to add your class to the RoverControls.forMode constructor so it can be used within the UI.

Implementers

Constructors

RoverControls()
Classes with a factory constructor must also have a regular constructor to be overriden.
const
RoverControls.forMode(OperatingMode mode)
Creates the appropriate RoverControls for this mode.
factory

Properties

buttonMapping → Map<String, String>
A human-readable explanation of what the controls are.
no setter
hashCode → int
The hash code for this object.
no setterinherited
mode OperatingMode
The OperatingMode for these controls.
no setter
onDispose → Iterable<Message>
A list of commands that disables the subsystem.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseInputs(GamepadState state) → Iterable<Message>
Return a list of commands based on the current state of the gamepad.
toString() → String
A string representation of this object.
inherited
updateState(GamepadState state) → void
Any logic to run before checking parseInputs.

Operators

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