summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-09-06 18:20:53 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2022-09-06 18:21:28 +0200
commit2898be69f414a2735b8693c58e039097853f5ec7 (patch)
treedc91ebee52e562781cbe1f58cdeedb4ba468438f /src/common
parentMerge pull request #8843 from Kelebek1/SILENCE_WENCH (diff)
downloadyuzu-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 'src/common')
-rw-r--r--src/common/input.h5
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{};
};