mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Fixed the infinite rumble problem caused by r4d6056f14625.
This commit is contained in:
parent
7a95713496
commit
5240e75be2
4 changed files with 23 additions and 11 deletions
|
@ -535,11 +535,7 @@ ControlState Joystick::Hat::GetState() const
|
|||
|
||||
void Joystick::ForceConstant::SetState(const ControlState state)
|
||||
{
|
||||
float force = abs(state - 0.5) * 2;
|
||||
if (state < 0.5)
|
||||
force = -force;
|
||||
|
||||
const LONG new_val = LONG(10000 * force);
|
||||
const LONG new_val = LONG(10000 * state);
|
||||
|
||||
LONG &val = params.lMagnitude;
|
||||
if (val != new_val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue