ControllerData.
More...
#include <arpirobot/core/network/ControllerData.hpp>
|
int | controllerNumber = -1 |
|
int | axisCount = -1 |
|
int | buttonCount = -1 |
|
int | dpadCount = -1 |
|
std::vector< float > | axes |
|
std::vector< bool > | buttons |
|
std::vector< int > | dpads |
|
std::vector< uint8_t > | lastData |
|
std::chrono::steady_clock::time_point | lastUpdateTime |
|
std::mutex | lock |
|
ControllerData.
Class to hold and data for a single controller and parse data received from network
◆ ControllerData()
arpirobot::ControllerData::ControllerData |
( |
std::vector< uint8_t > & |
data | ) |
|
- Parameters
-
data | The raw controller data from network |
◆ updateData()
void arpirobot::ControllerData::updateData |
( |
std::vector< uint8_t > & |
data | ) |
|
Update the controller data from raw network data
- Parameters
-
data | Raw controller data from network |
The documentation for this class was generated from the following file: