diff options
| author | Narr the Reg <juangerman-13@hotmail.com> | 2022-09-06 11:20:53 -0500 |
|---|---|---|
| committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-09-06 11:21:28 -0500 |
| commit | d4fb46d8f99715216ef75d2a0dd04c4e8d7383b4 (patch) | |
| tree | dc91ebee52e562781cbe1f58cdeedb4ba468438f /src/common/input.h | |
| parent | 9bec068e761fe12f1c2c077c67c4b811173030bb (diff) | |
input_common: Add support for analog toggle
Diffstat (limited to 'src/common/input.h')
| -rw-r--r-- | src/common/input.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/input.h b/src/common/input.h index 213aa2384d..825b0d650d 100644 --- a/src/common/input.h +++ b/src/common/input.h @@ -102,6 +102,8 @@ struct AnalogProperties { float offset{}; // Invert direction of the sensor data bool inverted{}; + // Press once to activate, press again to release + bool toggle{}; }; // Single analog sensor data @@ -115,8 +117,11 @@ struct AnalogStatus { struct ButtonStatus { Common::UUID uuid{}; bool value{}; + // Invert value of the button bool inverted{}; + // Press once to activate, press again to release bool toggle{}; + // Internal lock for the toggle status bool locked{}; }; |
