Merge pull request #11068 from ctrlaltdavid/dominant-hand-signal

Add a "dominant hand changed" signal
This commit is contained in:
anshuman64 2017-07-28 15:17:50 -07:00 committed by GitHub
commit e11388f7f7
2 changed files with 2 additions and 0 deletions

View file

@ -258,6 +258,7 @@ MyAvatar::~MyAvatar() {
void MyAvatar::setDominantHand(const QString& hand) {
if (hand == DOMINANT_LEFT_HAND || hand == DOMINANT_RIGHT_HAND) {
_dominantHand = hand;
emit dominantHandChanged(_dominantHand);
}
}

View file

@ -615,6 +615,7 @@ signals:
void wentAway();
void wentActive();
void skeletonChanged();
void dominantHandChanged(const QString& hand);
private: