summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-11-13 00:55:14 -0800
committerJasper St. Pierre <jstpierre@mecheye.net>2014-11-28 10:50:45 -0800
commitf2787f620eebbbfb746f59cfbd0318210297061b (patch)
treef40c85046226e9ae38114132df65c8e8c16d2425 /Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
parent61fcfc4bf2058d971af6882af2765ad34d935fcb (diff)
ControllerInterface: Make UpdateInput / UpdateOutput return void
The return values here have never been checked, so it doesn't make sense to return a value to begin with.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp26
1 files changed, 6 insertions, 20 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
index 95ce7e5d96..74aa6de3a3 100644
--- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
@@ -135,22 +135,15 @@ void ControllerInterface::Shutdown()
//
// Update input for all devices, return true if all devices returned successful
//
-bool ControllerInterface::UpdateInput()
+void ControllerInterface::UpdateInput()
{
std::unique_lock<std::recursive_mutex> lk(update_lock, std::defer_lock);
if (!lk.try_lock())
- return false;
-
- size_t ok_count = 0;
+ return;
for (ciface::Core::Device* d : m_devices)
- {
- if (d->UpdateInput())
- ++ok_count;
- }
-
- return (m_devices.size() == ok_count);
+ d->UpdateInput();
}
//
@@ -158,22 +151,15 @@ bool ControllerInterface::UpdateInput()
//
// Update output for all devices, return true if all devices returned successful
//
-bool ControllerInterface::UpdateOutput()
+void ControllerInterface::UpdateOutput()
{
std::unique_lock<std::recursive_mutex> lk(update_lock, std::defer_lock);
if (!lk.try_lock())
- return false;
-
- size_t ok_count = 0;
+ return;
for (ciface::Core::Device* d : m_devices)
- {
- if (d->UpdateOutput())
- ++ok_count;
- }
-
- return (m_devices.size() == ok_count);
+ d->UpdateOutput();
}
//