summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-09-10 05:54:01 +0200
committerGitHub <noreply@github.com>2022-09-10 05:54:01 +0200
commita967c41fa07c39b47aa8401305dfa0c8a9478367 (patch)
tree8e3b0077cf8bc7ae0acbca3459d5e43bb3b9cec4 /src/common
parentMerge pull request #8819 from liamwhite/cash-money (diff)
parentyuzu: input: fix invert symbol on axis and order options alphabetically (diff)
downloadyuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.gz
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.bz2
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.lz
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.xz
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.zst
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.zip
Diffstat (limited to '')
-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{};
};