| 860 | } |
| 861 | |
| 862 | void 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 | |
| 877 | void InputManager::AddPadBindings(SettingsInterface& si, u32 pad_index, bool is_profile) |
| 878 | { |
nothing calls this directly
no test coverage detected