Add force spring to Demul
This commit is contained in:
parent
0ae6751ede
commit
af03486616
@ -1,3 +1,16 @@
|
||||
/*This file is part of FFB Arcade Plugin.
|
||||
FFB Arcade Plugin is free software : you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
FFB Arcade Plugin is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with FFB Arcade Plugin.If not, see < https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Windows.h>
|
||||
|
||||
static char* aAddy;
|
||||
|
@ -20,6 +20,10 @@ along with FFB Arcade Plugin.If not, see < https://www.gnu.org/licenses/>.
|
||||
#include <windows.h>
|
||||
#include "../Common Files/SignatureScanning.h"
|
||||
|
||||
extern wchar_t* settingsFilename;
|
||||
extern int EnableForceSpringEffect;
|
||||
extern int ForceSpringStrength;
|
||||
|
||||
static bool NascarRunning = false;
|
||||
static bool InitialDRunning = false;
|
||||
static bool FFBGameInit = false;
|
||||
@ -124,6 +128,11 @@ const TCHAR substring2[] = TEXT("Initial D Arcade Stage");
|
||||
|
||||
void Demul::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers* triggers) {
|
||||
|
||||
if (EnableForceSpringEffect == 1)
|
||||
{
|
||||
triggers->Springi(ForceSpringStrength / 100.0);
|
||||
}
|
||||
|
||||
if (!WindowSearch)
|
||||
{
|
||||
if (!EnumWindows(FindWindowBySubstr, (LPARAM)substring) || !EnumWindows(FindWindowBySubstr, (LPARAM)substring0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user