![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Base class for all polled switches. More...
#include <InputHardware.hpp>
Public Member Functions | |
| virtual void | read (uint128_t &state)=0 |
| Read the current state of the inputs (pressed or released) | |
Base class for all polled switches.
Definition at line 32 of file InputHardware.hpp.
|
inlinevirtualnoexcept |
Definition at line 35 of file InputHardware.hpp.
|
pure virtual |
Read the current state of the inputs (pressed or released)
| [in,out] | state | At call, state of all inputs as recorded in the previous iteration. Whether the current state is unknown, state must be kept untouched. At return, new state of the inputs. |
Implemented in AnalogJoystickInput, AnalogMultiplexerInput, ButtonMatrixInput, DigitalButton, FakeDigitalInput, MCP23017ButtonsInput, PCF8574ButtonsInput, RotaryEncoderInput, and ShiftRegistersInput.