mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
ControllerInterface: invoke callbacks in AddDevice/RemoveDevice
Some backends already cause this to happen, so make it consistent across systems.
This commit is contained in:
@ -2,12 +2,14 @@
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "InputCommon/ControllerInterface/Device.h"
|
||||
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
#include "InputCommon/ControllerInterface/Device.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
namespace ciface
|
||||
{
|
||||
@ -39,6 +41,11 @@ void Device::AddOutput(Device::Output* const o)
|
||||
m_outputs.push_back(o);
|
||||
}
|
||||
|
||||
std::string Device::GetQualifiedName() const
|
||||
{
|
||||
return StringFromFormat("%s/%i/%s", this->GetSource().c_str(), GetId(), this->GetName().c_str());
|
||||
}
|
||||
|
||||
Device::Input* Device::FindInput(const std::string& name) const
|
||||
{
|
||||
for (Input* input : m_inputs)
|
||||
|
Reference in New Issue
Block a user