зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1355648 - Part 3: Set position and orientation IsValid properties for GamepadPose tests; r=kip
MozReview-Commit-ID: 29sjo3yhg98 --HG-- extra : rebase_source : afb483713a3e895d81e20d4d8dc3861679f1781e
This commit is contained in:
Родитель
df7c980c42
Коммит
3a6ad95915
|
@ -260,6 +260,7 @@ GamepadServiceTest::NewPoseMove(uint32_t aIndex,
|
|||
poseState.orientation[1] = value.Data()[1];
|
||||
poseState.orientation[2] = value.Data()[2];
|
||||
poseState.orientation[3] = value.Data()[3];
|
||||
poseState.isOrientationValid = true;
|
||||
}
|
||||
if (!aPos.IsNull()) {
|
||||
const Float32Array& value = aPos.Value();
|
||||
|
@ -268,6 +269,7 @@ GamepadServiceTest::NewPoseMove(uint32_t aIndex,
|
|||
poseState.position[0] = value.Data()[0];
|
||||
poseState.position[1] = value.Data()[1];
|
||||
poseState.position[2] = value.Data()[2];
|
||||
poseState.isPositionValid = true;
|
||||
}
|
||||
if (!aAngVelocity.IsNull()) {
|
||||
const Float32Array& value = aAngVelocity.Value();
|
||||
|
|
|
@ -212,6 +212,7 @@ VRMockController::NewPoseMove(const Nullable<Float32Array>& aPosition,
|
|||
poseState.orientation[1] = value.Data()[1];
|
||||
poseState.orientation[2] = value.Data()[2];
|
||||
poseState.orientation[3] = value.Data()[3];
|
||||
poseState.isOrientationValid = true;
|
||||
}
|
||||
if (!aPosition.IsNull()) {
|
||||
const Float32Array& value = aPosition.Value();
|
||||
|
@ -220,6 +221,7 @@ VRMockController::NewPoseMove(const Nullable<Float32Array>& aPosition,
|
|||
poseState.position[0] = value.Data()[0];
|
||||
poseState.position[1] = value.Data()[1];
|
||||
poseState.position[2] = value.Data()[2];
|
||||
poseState.isPositionValid = true;
|
||||
}
|
||||
if (!aAngularVelocity.IsNull()) {
|
||||
const Float32Array& value = aAngularVelocity.Value();
|
||||
|
|
Загрузка…
Ссылка в новой задаче