Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
b926c952
Commit
b926c952
authored
May 10, 2017
by
amandaghassaei
Browse files
small changes
parent
25962e89
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/ViveInterface.js
View file @
b926c952
...
...
@@ -42,9 +42,11 @@ function initViveInterface(globals){
$status
.
html
(
"
VR device detected.
"
);
var
button
=
WEBVR
.
getButton
(
display
,
globals
.
threeView
.
renderer
.
domElement
);
document
.
body
.
appendChild
(
button
);
var
callback
=
button
.
onclick
;
button
.
onclick
=
function
()
{
if
(
display
.
isPresenting
)
globals
.
vrEnabled
=
false
;
else
globals
.
vrEnabled
=
true
;
if
(
callback
)
callback
();
};
}
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment