Merge pull request #6047 from howard-stearns/log-hydra-disconnect

Log when hydra is disconnected.
This commit is contained in:
Brad Hefta-Gaub 2015-10-09 20:41:27 -07:00
commit e48206f1b5

View file

@ -166,6 +166,9 @@ void SixenseManager::update(float deltaTime, bool jointsCaptured) {
auto userInputMapper = DependencyManager::get<UserInputMapper>();
if (sixenseGetNumActiveControllers() == 0) {
if (_hydrasConnected) {
qCDebug(inputplugins, "hydra disconnected");
}
_hydrasConnected = false;
if (_deviceID != 0) {
userInputMapper->removeDevice(_deviceID);