summaryrefslogtreecommitdiffstats
path: root/src/common/input.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-10-20 21:41:56 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2021-11-25 03:30:24 +0100
commitc3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048 (patch)
tree9ecde3ad19cbbb29f418655fc0125cef6c7b31ab /src/common/input.h
parentcore/hid: Only signal when needed (diff)
downloadyuzu-c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048.tar
yuzu-c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048.tar.gz
yuzu-c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048.tar.bz2
yuzu-c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048.tar.lz
yuzu-c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048.tar.xz
yuzu-c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048.tar.zst
yuzu-c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048.zip
Diffstat (limited to '')
-rw-r--r--src/common/input.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/input.h b/src/common/input.h
index 8871a9d07..cdacd4689 100644
--- a/src/common/input.h
+++ b/src/common/input.h
@@ -60,6 +60,12 @@ enum class PollingError {
Unknown,
};
+// Hint for amplification curve to be used
+enum class VibrationAmplificationType {
+ Linear,
+ Exponential,
+};
+
struct AnalogProperties {
float deadzone{};
float range{1.0f};
@@ -126,6 +132,7 @@ struct VibrationStatus {
f32 low_frequency{};
f32 high_amplitude{};
f32 high_frequency{};
+ VibrationAmplificationType type;
};
struct LedStatus {