diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-09-06 18:20:53 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-09-06 18:21:28 +0200 |
commit | 2898be69f414a2735b8693c58e039097853f5ec7 (patch) | |
tree | dc91ebee52e562781cbe1f58cdeedb4ba468438f /src/common/input.h | |
parent | Merge pull request #8843 from Kelebek1/SILENCE_WENCH (diff) | |
download | yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.gz yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.bz2 yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.lz yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.xz yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.zst yuzu-2898be69f414a2735b8693c58e039097853f5ec7.zip |
Diffstat (limited to '')
-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 213aa2384..825b0d650 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{}; }; |