From c0268cb2eb4c40465ae370b05a79bb1193236a37 Mon Sep 17 00:00:00 2001 From: Aaron M Date: Tue, 24 Dec 2019 13:11:31 +1300 Subject: [PATCH] remove double entry --- Game Files/OutputReading.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/Game Files/OutputReading.cpp b/Game Files/OutputReading.cpp index 06a15c3..c6ba9de 100644 --- a/Game Files/OutputReading.cpp +++ b/Game Files/OutputReading.cpp @@ -2046,36 +2046,6 @@ void OutputReading::FFBLoop(EffectConstants* constants, Helpers* helpers, Effect } } - if (RunningFFB == SanFranActive) //San Francisco Rush - { - if (Emulator == MAME) - { - if (name == wheel) - { - helpers->log("got value: "); - std::string ffs = std::to_string(newstateFFB); - helpers->log((char*)ffs.c_str()); - - stateFFB = newstateFFB; - } - - if ((stateFFB > 0x80) && (stateFFB < 0x100)) - { - double percentForce = (256 - stateFFB) / 127.0; - double percentLength = 100; - triggers->Rumble(0, percentForce, percentLength); - triggers->Constant(constants->DIRECTION_FROM_RIGHT, percentForce); - } - else if ((stateFFB > 0x00) && (stateFFB < 0x80)) - { - double percentForce = (stateFFB) / 127.0; - double percentLength = 100; - triggers->Rumble(percentForce, 0, percentLength); - triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce); - } - } - } - if (RunningFFB == SanFranRockActive) //San Francisco Rush The Rock { if (Emulator == MAME)