summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-11-13 01:11:43 -0800
committerJasper St. Pierre <jstpierre@mecheye.net>2014-11-28 10:54:04 -0800
commitf3b739341ee5ad000e8c58b971ed7e273dd9870e (patch)
treede1f8ef3753c9e0d3ec1d9e096855b83dcfc951e /Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
parent86e4da2c071b6185803ed40045497bcf4e325f0d (diff)
HW: Remove UpdateOutput
All of the rumble interfaces are now immediate mode.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
index 74aa6de3a3..3eb1b95ff2 100644
--- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
@@ -98,9 +98,6 @@ void ControllerInterface::Shutdown()
for (ciface::Core::Device::Output* o : d->Outputs())
o->SetState(0);
- // Update output
- d->UpdateOutput();
-
// Delete device
delete d;
}
@@ -147,22 +144,6 @@ void ControllerInterface::UpdateInput()
}
//
-// UpdateOutput
-//
-// Update output for all devices, return true if all devices returned successful
-//
-void ControllerInterface::UpdateOutput()
-{
- std::unique_lock<std::recursive_mutex> lk(update_lock, std::defer_lock);
-
- if (!lk.try_lock())
- return;
-
- for (ciface::Core::Device* d : m_devices)
- d->UpdateOutput();
-}
-
-//
// InputReference :: State
//
// Gets the state of an input reference
@@ -278,14 +259,9 @@ ciface::Core::Device::Control* ControllerInterface::OutputReference::Detect(cons
// this loop is to make stuff like flashing keyboard LEDs work
while (ms > (slept += 10))
- {
- // TODO: improve this to update more than just the default device's output
- device->UpdateOutput();
Common::SleepCurrentThread(10);
- }
State(0);
- device->UpdateOutput();
}
return nullptr;
}