mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Merge pull request #6047 from howard-stearns/log-hydra-disconnect
Log when hydra is disconnected.
This commit is contained in:
commit
e48206f1b5
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue