diff options
| author | 2021-10-20 14:41:56 -0500 | |
|---|---|---|
| committer | 2021-11-24 20:30:24 -0600 | |
| commit | c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048 (patch) | |
| tree | 9ecde3ad19cbbb29f418655fc0125cef6c7b31ab /src/common | |
| parent | core/hid: Only signal when needed (diff) | |
| download | yuzu-c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048.tar.gz yuzu-c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048.tar.xz yuzu-c3ff0a8ac0d1c3f9c0791b5263dae53c06ad6048.zip | |
core/hid: Fix rumble too strong at 1%
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/input.h | 7 |
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 { | |||
| 60 | Unknown, | 60 | Unknown, |
| 61 | }; | 61 | }; |
| 62 | 62 | ||
| 63 | // Hint for amplification curve to be used | ||
| 64 | enum class VibrationAmplificationType { | ||
| 65 | Linear, | ||
| 66 | Exponential, | ||
| 67 | }; | ||
| 68 | |||
| 63 | struct AnalogProperties { | 69 | struct AnalogProperties { |
| 64 | float deadzone{}; | 70 | float deadzone{}; |
| 65 | float range{1.0f}; | 71 | float range{1.0f}; |
| @@ -126,6 +132,7 @@ struct VibrationStatus { | |||
| 126 | f32 low_frequency{}; | 132 | f32 low_frequency{}; |
| 127 | f32 high_amplitude{}; | 133 | f32 high_amplitude{}; |
| 128 | f32 high_frequency{}; | 134 | f32 high_frequency{}; |
| 135 | VibrationAmplificationType type; | ||
| 129 | }; | 136 | }; |
| 130 | 137 | ||
| 131 | struct LedStatus { | 138 | struct LedStatus { |