InputController class abstract Components
InputController represents a physical input controller.
For more information, see InputController component.
- Inheritance
- Implementers
Constructors
Properties
Methods
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
inherited
-
getControls(
{Map< String, dynamic> ? extra}) → Future<List< String> > - Get the list of available controls on the input controller.
-
getEvents(
{Map< String, dynamic> ? extra}) → Future<List< Event> > - Get events for each control on the input controller.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerControlCallback(
String control, List< String> triggers, void callback(Event)?, {Map<String, dynamic> ? extra}) → Future<void> - Register a callback function to be called when control events occur.
-
toString(
) → String -
A string representation of this object.
inherited
-
triggerEvent(
Event event, {Map< String, dynamic> ? extra}) → Future<void> - Trigger an event on the input controller.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromRobot(
RobotClient robot, String name) → InputController -
Get the InputController named
namefrom the provided robot. -
getResourceName(
String name) → ResourceName -
Get the ResourceName for this InputController with the given
name