Spring Changes
This commit is contained in:
parent
363341b82e
commit
55b96f61e3
@ -16,6 +16,8 @@ xcopy ".\Release.x64\dinput8.dll" ".\Release.Win32\PokkenTournament" /Y
|
|||||||
xcopy ".\Release.x64\SDL2.dll" ".\Release.Win32\PokkenTournament" /Y
|
xcopy ".\Release.x64\SDL2.dll" ".\Release.Win32\PokkenTournament" /Y
|
||||||
xcopy ".\Release.x64\dinput8.dll" ".\Release.Win32\Supermodel 64bit Outputs" /Y
|
xcopy ".\Release.x64\dinput8.dll" ".\Release.Win32\Supermodel 64bit Outputs" /Y
|
||||||
xcopy ".\Release.x64\SDL2.dll" ".\Release.Win32\Supermodel 64bit Outputs" /Y
|
xcopy ".\Release.x64\SDL2.dll" ".\Release.Win32\Supermodel 64bit Outputs" /Y
|
||||||
|
xcopy ".\Release.x64\dinput8.dll" ".\Release.Win32\Spring Effect 64bit" /Y
|
||||||
|
xcopy ".\Release.x64\SDL2.dll" ".\Release.Win32\Spring Effect 64bit" /Y
|
||||||
xcopy ".\Release.x64\dinput8.dll" ".\Release.Win32\Flycast" /Y
|
xcopy ".\Release.x64\dinput8.dll" ".\Release.Win32\Flycast" /Y
|
||||||
xcopy ".\Release.x64\SDL2.dll" ".\Release.Win32\Flycast" /Y
|
xcopy ".\Release.x64\SDL2.dll" ".\Release.Win32\Flycast" /Y
|
||||||
xcopy ".\Release.x64\dinput8.dll" ".\Release.Win32\WMMT5" /Y
|
xcopy ".\Release.x64\dinput8.dll" ".\Release.Win32\WMMT5" /Y
|
||||||
|
@ -121,11 +121,20 @@ EnableDamper=0
|
|||||||
DamperStrength=100
|
DamperStrength=100
|
||||||
FFBOrRumble=0
|
FFBOrRumble=0
|
||||||
|
|
||||||
[Spring Effect]
|
[Spring Effect 32bit]
|
||||||
GameId=74
|
GameId=74
|
||||||
FeedbackLength=500
|
FeedbackLength=500
|
||||||
EnableDamper=0
|
EnableDamper=0
|
||||||
DamperStrength=100
|
DamperStrength=100
|
||||||
|
SpringEnable=1
|
||||||
|
SpringStrength=100
|
||||||
|
|
||||||
|
[Spring Effect 64bit]
|
||||||
|
GameId=74
|
||||||
|
FeedbackLength=500
|
||||||
|
EnableDamper=0
|
||||||
|
DamperStrength=100
|
||||||
|
SpringEnable=1
|
||||||
SpringStrength=100
|
SpringStrength=100
|
||||||
|
|
||||||
[GRID Real]
|
[GRID Real]
|
||||||
|
Binary file not shown.
Binary file not shown.
17
DllMain.cpp
17
DllMain.cpp
@ -1811,8 +1811,21 @@ void TriggerSpringEffectInfinite(double strength)
|
|||||||
tempEffect.condition.direction.dir[0] = 1;
|
tempEffect.condition.direction.dir[0] = 1;
|
||||||
tempEffect.constant.direction.dir[1] = 1; //Y Position
|
tempEffect.constant.direction.dir[1] = 1; //Y Position
|
||||||
|
|
||||||
SHORT minForce = (SHORT)(strength > 0.001 ? (configMinForce / 100.0 * 32767.0) : 0); // strength is a double so we do an epsilon check of 0.001 instead of > 0.
|
SHORT minForce;
|
||||||
SHORT maxForce = (SHORT)(configMaxForce / 100.0 * 32767.0);
|
SHORT maxForce;
|
||||||
|
|
||||||
|
if (EnableForceSpringEffect)
|
||||||
|
{
|
||||||
|
minForce = (SHORT)(0); // strength is a double so we do an epsilon check of 0.001 instead of > 0.
|
||||||
|
maxForce = (SHORT)(ForceSpringStrength / 100.0 * 32767.0);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
minForce = (SHORT)(strength > 0.001 ? (configMinForce / 100.0 * 32767.0) : 0); // strength is a double so we do an epsilon check of 0.001 instead of > 0.
|
||||||
|
maxForce = (SHORT)(configMaxForce / 100.0 * 32767.0);
|
||||||
|
}
|
||||||
|
|
||||||
SHORT range = maxForce - minForce;
|
SHORT range = maxForce - minForce;
|
||||||
SHORT coeff = (SHORT)(strength * range + minForce);
|
SHORT coeff = (SHORT)(strength * range + minForce);
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
v2.0.0.32
|
v2.0.0.33
|
Loading…
Reference in New Issue
Block a user