![]() |
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 uint64_t | read (uint64_t lastState)=0 |
| Read the current state of the inputs (pressed or released) | |
Public Attributes | |
| uint64_t | mask = ~0ULL |
| Input mask. For read-only. | |
Protected Member Functions | |
| void | addToMask (uint64_t bitmap) |
| Add an input bitmap to the current mask. | |
Base class for all polled switches.
Definition at line 31 of file InputHardware.hpp.
|
inlinevirtualnoexcept |
Definition at line 41 of file InputHardware.hpp.
|
inlineprotected |
Add an input bitmap to the current mask.
| bitmap | Input bitmap |
Definition at line 64 of file InputHardware.hpp.
|
pure virtual |
Read the current state of the inputs (pressed or released)
| lastState | State of the same inputs as recorded in the previous iteration. Whether the current state is unknown, lastState must be returned (properly masked). Must be set to zero at first call. |
Implemented in AnalogMultiplexerInput, ButtonMatrixInput, DigitalButton, FakeDigitalInput, MCP23017ButtonsInput, PCF8574ButtonsInput, RotaryCodedSwitchInput, RotaryEncoderInput, and ShiftRegistersInput.
| uint64_t DigitalInput::mask = ~0ULL |
Input mask. For read-only.
Definition at line 38 of file InputHardware.hpp.