Common: Remove the string parameters from the HookableEvent interface.

This commit is contained in:
Jordan Woyak
2025-11-06 22:08:27 -06:00
parent 5650be6842
commit da6c65bf3b
27 changed files with 83 additions and 125 deletions

View File

@@ -172,11 +172,10 @@ void InputConfig::RegisterHotplugCallback()
{
// Update control references on all controllers
// as configured devices may have been added or removed.
m_hotplug_event_hook =
g_controller_interface.RegisterDevicesChangedCallback("InputConfig", [this] {
for (auto& controller : m_controllers)
controller->UpdateReferences(g_controller_interface);
});
m_hotplug_event_hook = g_controller_interface.RegisterDevicesChangedCallback([this] {
for (auto& controller : m_controllers)
controller->UpdateReferences(g_controller_interface);
});
}
void InputConfig::UnregisterHotplugCallback()