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

@@ -415,10 +415,9 @@ bool ControllerInterface::IsMouseCenteringRequested() const
// Returns a handle for later removing the callback.
Common::EventHook
ControllerInterface::RegisterDevicesChangedCallback(std::string_view name,
Common::HookableEvent<>::CallbackType callback)
ControllerInterface::RegisterDevicesChangedCallback(Common::HookableEvent<>::CallbackType callback)
{
return m_devices_changed_event.Register(std::move(callback), name);
return m_devices_changed_event.Register(std::move(callback));
}
// Invoke all callbacks that were registered