InputController class abstract Components

InputController represents a physical input controller.

For more information, see InputController component.

Inheritance
Implementers

Constructors

InputController()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 name from the provided robot.
getResourceName(String name) ResourceName
Get the ResourceName for this InputController with the given name

Constants

subtype → const Subtype