One created virtual input device.
More...
#include <backend.hpp>
One created virtual input device.
Definition at line 58 of file backend.hpp.
◆ ~Device()
| virtual apollo::input::Device::~Device |
( |
| ) |
|
|
virtualdefault |
◆ connected()
| virtual bool apollo::input::Device::connected |
( |
| ) |
const |
|
pure virtual |
Whether the device is still connected to its backend.
- Returns
- True when updates can be submitted.
◆ disconnect()
| virtual void apollo::input::Device::disconnect |
( |
| ) |
|
|
pure virtual |
Remove the virtual device from the system.
◆ info()
| virtual const DeviceInfo & apollo::input::Device::info |
( |
| ) |
const |
|
pure virtual |
Description of the virtual device.
- Returns
- Immutable device information.
◆ set_deadzone()
| virtual void apollo::input::Device::set_deadzone |
( |
const AnalogDeadzone & | deadzone | ) |
|
|
inlinevirtual |
Configure analog drift filtering for this device.
Backends that forward analog axes apply the deadzone before submitting the report. Devices that do not support analog filtering ignore it.
- Parameters
-
| deadzone | Stick and trigger deadzone configuration. |
Definition at line 92 of file backend.hpp.
◆ set_feedback_callback()
| virtual void apollo::input::Device::set_feedback_callback |
( |
FeedbackCallback | callback | ) |
|
|
inlinevirtual |
Replace the feedback callback.
- Parameters
-
| callback | Callback invoked from the backend thread. |
Definition at line 123 of file backend.hpp.
◆ update()
| virtual bool apollo::input::Device::update |
( |
const GamepadState & | state | ) |
|
|
pure virtual |
Submit a complete gamepad report.
- Parameters
-
| state | Buttons, triggers, and sticks. |
- Returns
- True when the backend accepted the report.
◆ update_imu()
| virtual bool apollo::input::Device::update_imu |
( |
const ImuSample & | sample | ) |
|
|
inlinevirtual |
Submit an IMU sample when the backend supports it.
- Parameters
-
| sample | Gyroscope and accelerometer sample. |
- Returns
- True when the backend accepted the sample.
Definition at line 113 of file backend.hpp.
◆ update_touchpad()
| virtual bool apollo::input::Device::update_touchpad |
( |
const TouchpadState & | state | ) |
|
|
inlinevirtual |
Submit a touchpad report when the backend supports it.
- Parameters
-
- Returns
- True when the backend accepted the report.
Definition at line 102 of file backend.hpp.
The documentation for this class was generated from the following file: