-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: size and set it up so that webvr-config is used. (#6)
- Loading branch information
1 parent
377e8a6
commit d5ef81e
Showing
3 changed files
with
28 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import window from 'global/window'; | ||
// this is used to configure webvr-polyfill | ||
// see https://github.com/googlevr/webvr-polyfill#configuration | ||
const WebVRConfig = { | ||
// TODO: | ||
// implement controls so that thy only work when the player is in focus. | ||
// This will require MOUSE_KEYBOARD_CONTROLS_DISABLED, and TOUCH_PANNER_DISABLED to be set to true | ||
// and various points in the code will have to be changed. As a lot of the code | ||
// expects some sort of controls to be set up, and when no controls are set up | ||
// it throws an error about no vr displays being found. VrDisplays is actually referring to controls. | ||
|
||
// Flag to disable touch panner. In case you have your own touch controls. | ||
// Default: true. | ||
// TOUCH_PANNER_DISABLED: true, | ||
// To disable keyboard and mouse controls, if you want to use your own | ||
// implementation. | ||
// Default: false. | ||
// MOUSE_KEYBOARD_CONTROLS_DISABLED: true, | ||
}; | ||
|
||
window.WebVRConfig = WebVRConfig; |
This file was deleted.
Oops, something went wrong.