core/hid: Fix rumble too strong at 1%
This commit is contained in:
parent
601ac43495
commit
c3ff0a8ac0
3 changed files with 48 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue