GameSettings: Disable analog mode forcing instead of forcing digital controller
This commit is contained in:
parent
8716c33f41
commit
def9a98cb9
8 changed files with 102 additions and 102 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include "common/state_wrapper.h"
|
||||
#include "common/string_util.h"
|
||||
#include "host_interface.h"
|
||||
#include "settings.h"
|
||||
#include "system.h"
|
||||
#include <cmath>
|
||||
Log_SetChannel(AnalogController);
|
||||
|
|
@ -31,7 +32,17 @@ void AnalogController::Reset()
|
|||
ResetRumbleConfig();
|
||||
|
||||
if (m_force_analog_on_reset)
|
||||
SetAnalogMode(true);
|
||||
{
|
||||
if (g_settings.controller_disable_analog_mode_forcing)
|
||||
{
|
||||
g_host_interface->AddOSDMessage(
|
||||
g_host_interface->TranslateStdString(
|
||||
"OSDMessage", "Analog mode forcing is disabled by game settings. Controller will start in digital mode."),
|
||||
10.0f);
|
||||
}
|
||||
else
|
||||
SetAnalogMode(true);
|
||||
}
|
||||
}
|
||||
|
||||
bool AnalogController::DoState(StateWrapper& sw)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue