diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-09-23 00:47:57 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-09-23 00:47:57 -0500 |
| commit | bab91494d53f15d804834ba5d11730b0e855ebd8 (patch) | |
| tree | a86cd67ea34aa3497955dceb501794275e4e7f04 /Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp | |
| parent | d84312c799816e8835e6bed562f216bf19725761 (diff) | |
| parent | 1da6469c62fa1b4fd669a48cb583e161d5cb2713 (diff) | |
Merge branch 'master' into android-core-control
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp')
| -rw-r--r-- | Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp index d2982bba24..bc1e115c17 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp +++ b/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp @@ -178,11 +178,11 @@ bool ControllerInterface::UpdateOutput(const bool force) size_t ok_count = 0; - std::vector<Device*>::const_iterator - d = m_devices.begin(), - e = m_devices.end(); - for (;d != e; ++d) - (*d)->UpdateOutput(); + for (auto d = m_devices.cbegin(); d != m_devices.cend(); ++d) + { + if ((*d)->UpdateOutput()) + ++ok_count; + } return (m_devices.size() == ok_count); } @@ -196,7 +196,7 @@ bool ControllerInterface::UpdateOutput(const bool force) ControlState ControllerInterface::InputReference::State( const ControlState ignore ) { if (parsed_expression) - return parsed_expression->GetValue(); + return parsed_expression->GetValue() * range; else return 0.0f; } |
