| 241 | } |
| 242 | |
| 243 | void 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 | |
| 260 | void InputBindingWidget::reloadBinding() |
| 261 | { |
nothing calls this directly
no test coverage detected