mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 20:03:06 +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>();
|
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
||||||
|
|
||||||
if (sixenseGetNumActiveControllers() == 0) {
|
if (sixenseGetNumActiveControllers() == 0) {
|
||||||
|
if (_hydrasConnected) {
|
||||||
|
qCDebug(inputplugins, "hydra disconnected");
|
||||||
|
}
|
||||||
_hydrasConnected = false;
|
_hydrasConnected = false;
|
||||||
if (_deviceID != 0) {
|
if (_deviceID != 0) {
|
||||||
userInputMapper->removeDevice(_deviceID);
|
userInputMapper->removeDevice(_deviceID);
|
||||||
|
|
Loading…
Reference in a new issue