Skip to content

Commit

Permalink
Use Sensor APIs when available instead of devicemotion. Fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
jsantell committed Jan 10, 2018
1 parent 106e6cb commit a9f8858
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 187 deletions.
2 changes: 1 addition & 1 deletion src/cardboard-vr-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ CardboardVRDisplay.prototype = Object.create(VRDisplay.prototype);

CardboardVRDisplay.prototype._getPose = function() {
return {
position: this.poseSensor_.getPosition(),
position: null,
orientation: this.poseSensor_.getOrientation(),
linearVelocity: null,
linearAcceleration: null,
Expand Down
Loading

0 comments on commit a9f8858

Please sign in to comment.