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

Method reloadBinding

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

Source from the content-addressed store, hash-verified

258}
259
260void InputBindingWidget::reloadBinding()
261{
262 m_bindings_settings = m_sif ? m_sif->GetStringList(m_section_name.c_str(), m_key_name.c_str()) :
263 Host::GetBaseStringListSetting(m_section_name.c_str(), m_key_name.c_str());
264
265 m_bindings_ui.clear();
266 m_bindings_ui.reserve(m_bindings_settings.size());
267 for (size_t i = 0; i < m_bindings_settings.size(); i++)
268 {
269 SmallString binding{std::string_view{m_bindings_settings[i]}};
270 InputManager::PrettifyInputBinding(binding, false);
271 m_bindings_ui.push_back(std::string{binding});
272 }
273
274 updateText();
275}
276
277void InputBindingWidget::onClicked()
278{

Callers

nothing calls this directly

Calls 6

GetStringListMethod · 0.45
c_strMethod · 0.45
clearMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected