mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
WiimoteEmu: Allow shake frequency and intensity to be configured. Other minor cleanups.
This commit is contained in:
@ -28,7 +28,7 @@ Triggers::StateData Triggers::GetState()
|
||||
|
||||
StateData result(trigger_count);
|
||||
for (size_t i = 0; i < trigger_count; ++i)
|
||||
result.data[i] = std::max(controls[i]->control_ref->State() - deadzone, 0.0) / (1 - deadzone);
|
||||
result.data[i] = ApplyDeadzone(controls[i]->control_ref->State(), deadzone);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user