if (motionTracker) { if ((int)_subTrackerId < motionTracker->numJointTrackers()) { const MotionTracker::JointTracker* joint = motionTracker->getJointTracker(_subTrackerId); if (joint->isActive()) { joint->getAbsFrame().getTranslation(_eventCache.absTranslation); joint->getAbsFrame().getRotation(_eventCache.absRotation); joint->getLocFrame().getTranslation(_eventCache.locTranslation); joint->getLocFrame().getRotation(_eventCache.locRotation); _isActive = true; emit spatialEvent(_eventCache); } } }} const unsigned int INPUTCONTROLLER_KEY_DEVICE_OFFSET = 16;const unsigned int INPUTCONTROLLER_KEY_DEVICE_MASK = 16; InputController::Key InputController::getKey() const { return (((_deviceTrackerId & INPUTCONTROLLER_KEY_DEVICE_MASK) << INPUTCONTROLLER_KEY_DEVICE_OFFSET) | _subTrackerId);}Lines 501–523 of 523. Previous lines
if (motionTracker) { if ((int)_subTrackerId < motionTracker->numJointTrackers()) { const MotionTracker::JointTracker* joint = motionTracker->getJointTracker(_subTrackerId); if (joint->isActive()) { joint->getAbsFrame().getTranslation(_eventCache.absTranslation); joint->getAbsFrame().getRotation(_eventCache.absRotation); joint->getLocFrame().getTranslation(_eventCache.locTranslation); joint->getLocFrame().getRotation(_eventCache.locRotation); _isActive = true; emit spatialEvent(_eventCache); } } } } const unsigned int INPUTCONTROLLER_KEY_DEVICE_OFFSET = 16; const unsigned int INPUTCONTROLLER_KEY_DEVICE_MASK = 16; InputController::Key InputController::getKey() const { return (((_deviceTrackerId & INPUTCONTROLLER_KEY_DEVICE_MASK) << INPUTCONTROLLER_KEY_DEVICE_OFFSET) | _subTrackerId); }