diff options
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp')
| -rw-r--r-- | Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp index 724e429de2..b738d5aabb 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp +++ b/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp @@ -545,7 +545,11 @@ ControllerInterface::Device::Output* ControllerInterface::Device::FindOutput(con ControllerInterface::Device::Input* ControllerInterface::FindInput(const std::string& name, const Device* def_dev) const { if (def_dev) - return def_dev->FindInput(name); + { + Device::Input* const inp = def_dev->FindInput(name); + if (inp) + return inp; + } std::vector<Device*>::const_iterator di = m_devices.begin(), |
