core/hid: Fix rumble too strong at 1%

This commit is contained in:
german77 2021-10-20 14:41:56 -05:00 committed by Narr the Reg
parent 601ac43495
commit c3ff0a8ac0
3 changed files with 48 additions and 13 deletions

View file

@ -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 {