MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / clearBinding

Method clearBinding

pcsx2-qt/Settings/InputBindingWidget.cpp:243–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void InputBindingWidget::clearBinding()
244{
245 if (m_sif)
246 {
247 m_sif->DeleteValue(m_section_name.c_str(), m_key_name.c_str());
248 m_sif->Save();
249 g_emu_thread->reloadGameSettings();
250 }
251 else
252 {
253 Host::RemoveBaseSettingValue(m_section_name.c_str(), m_key_name.c_str());
254 Host::CommitBaseSettingChanges();
255 g_emu_thread->reloadInputBindings();
256 }
257 reloadBinding();
258}
259
260void InputBindingWidget::reloadBinding()
261{

Callers

nothing calls this directly

Calls 5

reloadGameSettingsMethod · 0.80
reloadInputBindingsMethod · 0.80
DeleteValueMethod · 0.45
c_strMethod · 0.45
SaveMethod · 0.45

Tested by

no test coverage detected