PR feedback

This commit is contained in:
Brad Davis 2016-05-18 09:38:44 -07:00
parent 07562f72af
commit 73342b2758
3 changed files with 5 additions and 4 deletions

View file

@ -458,7 +458,7 @@ void NeuronPlugin::InputDevice::update(float deltaTime, const controller::InputC
const glm::vec3& pos = joints[i].pos;
const glm::vec3& rotEuler = joints[i].euler;
if ((Vectors::ZERO == pos && Vectors::ZERO == rotEuler)) {
if (Vectors::ZERO == pos && Vectors::ZERO == rotEuler) {
_poseStateMap[poseIndex] = controller::Pose();
continue;
}

View file

@ -11,6 +11,10 @@
#include "SpacemouseManager.h"
#ifdef Q_OS_WIN
#include <VersionHelpers.h>
#endif
#include <UserActivityLogger.h>
#include <PathUtils.h>
@ -171,8 +175,6 @@ void SpacemouseDevice::update(float deltaTime, const controller::InputCalibratio
#ifdef Q_OS_WIN
#include <VersionHelpers.h>
bool SpacemouseManager::nativeEventFilter(const QByteArray& eventType, void* message, long* result) {
MSG* msg = static_cast< MSG * >(message);
return RawInputEventFilter(message, result);

View file

@ -213,7 +213,6 @@ void ViveControllerManager::renderHand(const controller::Pose& pose, gpu::Batch&
void ViveControllerManager::pluginUpdate(float deltaTime, const controller::InputCalibrationData& inputCalibrationData) {
_inputDevice->update(deltaTime, inputCalibrationData);
auto userInputMapper = DependencyManager::get<controller::UserInputMapper>();
// because update mutates the internal state we need to lock