Skip to content

Commit

Permalink
Rumble only mode == RumbleFF
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongGino committed Jul 26, 2024
1 parent eb5456c commit a5de3fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SamcoEnhanced/SamcoEnhanced.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3178,18 +3178,21 @@ void SerialProcessing()
serialInput = Serial.read();
// TODO: implement?
break;
// rumble only mode (isn't this redundant?)
// rumble only mode (enable Rumble FF)
case '6':
Serial.read(); // nomf
serialInput = Serial.read();
switch(serialInput) {
// disable
case '0':
if(SamcoPreferences::pins.sSolenoid == -1 && SamcoPreferences::pins.oSolenoid >= 0) { SamcoPreferences::toggles.solenoidActive = true; }
if(SamcoPreferences::pins.oRumble >= 0) { SamcoPreferences::toggles.rumbleFF = false; }
break;
// enable
case '1':
if(SamcoPreferences::pins.sRumble == -1 && SamcoPreferences::pins.oRumble >= 0) { SamcoPreferences::toggles.rumbleActive = true; }
if(SamcoPreferences::pins.sSolenoid == -1 && SamcoPreferences::pins.oSolenoid >= 0) { SamcoPreferences::toggles.solenoidActive = false; }
if(SamcoPreferences::pins.oRumble >= 0) { SamcoPreferences::toggles.rumbleFF = true; }
break;
}
OF_FFB.FFBShutdown();
Expand Down

0 comments on commit a5de3fe

Please sign in to comment.