mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
GCAdapter: Add a setting to toggle rumble
This commit is contained in:
parent
57f458fe9b
commit
ec7445d66b
5 changed files with 16 additions and 2 deletions
|
@ -354,6 +354,7 @@ void SConfig::SaveCoreSettings(IniFile& ini)
|
|||
core->Set("GFXBackend", m_LocalCoreStartupParameter.m_strVideoBackend);
|
||||
core->Set("GPUDeterminismMode", m_LocalCoreStartupParameter.m_strGPUDeterminismMode);
|
||||
core->Set("GameCubeAdapter", m_GameCubeAdapter);
|
||||
core->Set("AdapterRumble", m_AdapterRumble);
|
||||
}
|
||||
|
||||
void SConfig::SaveMovieSettings(IniFile& ini)
|
||||
|
@ -621,6 +622,7 @@ void SConfig::LoadCoreSettings(IniFile& ini)
|
|||
core->Get("GFXBackend", &m_LocalCoreStartupParameter.m_strVideoBackend, "");
|
||||
core->Get("GPUDeterminismMode", &m_LocalCoreStartupParameter.m_strGPUDeterminismMode, "auto");
|
||||
core->Get("GameCubeAdapter", &m_GameCubeAdapter, true);
|
||||
core->Get("AdapterRumble", &m_AdapterRumble, true);
|
||||
}
|
||||
|
||||
void SConfig::LoadMovieSettings(IniFile& ini)
|
||||
|
|
|
@ -116,6 +116,7 @@ struct SConfig : NonCopyable
|
|||
// Input settings
|
||||
bool m_BackgroundInput;
|
||||
bool m_GameCubeAdapter;
|
||||
bool m_AdapterRumble;
|
||||
|
||||
SysConf* m_SYSCONF;
|
||||
|
||||
|
|
|
@ -392,7 +392,7 @@ void Input(int chan, GCPadStatus* pad)
|
|||
|
||||
void Output(int chan, u8 rumble_command)
|
||||
{
|
||||
if (s_handle == nullptr || !SConfig::GetInstance().m_GameCubeAdapter)
|
||||
if (s_handle == nullptr || !SConfig::GetInstance().m_GameCubeAdapter || !SConfig::GetInstance().m_AdapterRumble)
|
||||
return;
|
||||
|
||||
// Skip over rumble commands if it has not changed or the controller is wireless
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue