mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 16:55:46 +00:00
core/hid: Fix rumble too strong at 1%
This commit is contained in:
parent
00f654cd22
commit
6c7814bc9c
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