![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Button matrix hardware. More...
#include <InputHardware.hpp>
Public Member Functions | |
| ButtonMatrixInput (const ButtonMatrix &matrix, bool negativeLogic=false) | |
| Construct a new Button Matrix Input object. | |
| virtual void | read (uint128_t &state) override |
| Read the current state of the inputs (pressed or released) | |
Public Member Functions inherited from DigitalInput | |
Button matrix hardware.
Definition at line 171 of file InputHardware.hpp.
| ButtonMatrixInput::ButtonMatrixInput | ( | const ButtonMatrix & | matrix, |
| bool | negativeLogic = false ) |
Construct a new Button Matrix Input object.
| matrix | Button matrix specification |
| negativeLogic | True to use negative logic |
|
overridevirtual |
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. |
Implements DigitalInput.