![]() |
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 | |
| uint64_t | state = 0ULL |
| Input bitmap. | |
| uint64_t | mask = ~(0ULL) |
| Input bitmask. | |
| 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 48 of file InternalTypes.hpp.
|
inline |
Definition at line 94 of file InternalTypes.hpp.
|
inline |
Definition at line 95 of file InternalTypes.hpp.
|
inline |
Simulate no input.
Definition at line 87 of file InternalTypes.hpp.
|
inline |
|
inline |
Simulate a button release.
| n | Input number |
Definition at line 77 of file InternalTypes.hpp.
| uint8_t FakeInput::leftAxis = 0 |
Left axis position.
Definition at line 55 of file InternalTypes.hpp.
| uint64_t FakeInput::mask = ~(0ULL) |
Input bitmask.
Definition at line 53 of file InternalTypes.hpp.
| size_t FakeInput::recalibrationRequestCount = 0 |
Count of times axis recalibration was asked.
Definition at line 59 of file InternalTypes.hpp.
| uint8_t FakeInput::rightAxis = 0 |
Right axis position.
Definition at line 57 of file InternalTypes.hpp.
| uint64_t FakeInput::state = 0ULL |
Input bitmap.
Definition at line 51 of file InternalTypes.hpp.