Interface for a consumer that monitors device and signal state updates (pose, buttons, etc).
More...
Interface for a consumer that monitors device and signal state updates (pose, buttons, etc).
Notifies the consumer that the application input coming from the device has been updated.
Typical input data contents (but note that individual devices may do things differently):
type | name | |
pose | "pose" | Device pose (units are meters). |
bool | "button1" | State of the first device button. |
bool | "button2" | State of the second device button (and so on). |
Other possible contents includes:
type | name | |
bool | "isHomed" | Device homing status. |
bool | "isHomedX" | Individual homing status for the X axis (and so on). |
bool | "isHeld" | Safety sensor etc. status. |
string | "model" | Device model description. |
string | "serial" | Serial number string. |
(any) | "debug:*" | Various debugging information |
- Parameters
-
device | The name of the device that is producing the input. This should only be used to identify the device (e.g. if the consumer is listening to several devices at once). |
inputData | The application input state coming from the device. |
Implemented in GlutWindow, ImageGlutWindow, SurgSim::Input::InputComponent, MovingSquareGlutWindow, MovingSquareForce, SurgSim::Testing::MockInputOutput, SurgSim::Devices::PoseIntegrator, SurgSim::Devices::DeviceFilter, TestListener, and TestListener.