![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Fake input specification used for testing. More...
#include <InternalTypes.hpp>
Public Member Functions | |
| void | press (uint8_t n) |
| Simulate a button press. | |
| void | release (uint8_t n) |
| Simulate a button release. | |
| void | clear () |
| Simulate no input. | |
Public Attributes | |
| uint128_t | state {} |
| Input bitmap. | |
| uint128_t | mask {} |
| Input mask. | |
| uint8_t | leftAxis = 0 |
| Left axis position. | |
| uint8_t | rightAxis = 0 |
| Right axis position. | |
| size_t | recalibrationRequestCount = 0 |
| Count of times axis recalibration was asked. | |
Fake input specification used for testing.
Definition at line 43 of file InternalTypes.hpp.
|
inline |
Simulate no input.
Definition at line 80 of file InternalTypes.hpp.
|
inline |
|
inline |
Simulate a button release.
| n | Input number |
Definition at line 71 of file InternalTypes.hpp.
| uint8_t FakeInput::leftAxis = 0 |
Left axis position.
Definition at line 50 of file InternalTypes.hpp.
| uint128_t FakeInput::mask {} |
Input mask.
Definition at line 48 of file InternalTypes.hpp.
| size_t FakeInput::recalibrationRequestCount = 0 |
Count of times axis recalibration was asked.
Definition at line 54 of file InternalTypes.hpp.
| uint8_t FakeInput::rightAxis = 0 |
Right axis position.
Definition at line 52 of file InternalTypes.hpp.
| uint128_t FakeInput::state {} |
Input bitmap.
Definition at line 46 of file InternalTypes.hpp.