mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Fixed the infinite rumble problem caused by r4d6056f14625.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user