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

Method AddHotkeyBindings

pcsx2/Input/InputManager.cpp:862–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860}
861
862void InputManager::AddHotkeyBindings(SettingsInterface& si, bool is_profile)
863{
864 for (const HotkeyInfo* hotkey_list : s_hotkey_list)
865 {
866 for (const HotkeyInfo* hotkey = hotkey_list; hotkey->name != nullptr; hotkey++)
867 {
868 const std::vector<std::string> bindings(si.GetStringList("Hotkeys", hotkey->name));
869 if (bindings.empty())
870 continue;
871
872 AddBindings(bindings, InputButtonEventHandler{hotkey->handler}, InputBindingInfo::Type::Button, si, "Hotkeys", hotkey->name, is_profile);
873 }
874 }
875}
876
877void InputManager::AddPadBindings(SettingsInterface& si, u32 pad_index, bool is_profile)
878{

Callers

nothing calls this directly

Calls 2

GetStringListMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected