aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-10-20 14:41:56 -0500
committerNarr the Reg <juangerman-13@hotmail.com>2021-11-24 20:30:24 -0600
commit6c7814bc9cac4decd42f7ae4bf2eb6ea9b227dbd (patch)
tree9ecde3ad19cbbb29f418655fc0125cef6c7b31ab /src/common
parent00f654cd2247f9c980710be27225d980f60518af (diff)
core/hid: Fix rumble too strong at 1%
Diffstat (limited to 'src/common')
-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 8871a9d078..cdacd46897 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 {