Revert "Added pointerlock option to camera"

This reverts commit 29074e51e8.
This commit is contained in:
Thomas FORGIONE 2015-06-19 15:40:18 +02:00
parent 29074e51e8
commit f44e498604
3 changed files with 4 additions and 9 deletions

View File

@ -34,8 +34,8 @@ block content
input#fullarrow(type="checkbox", style={'margin-right': '10px', 'margin-bottom': '10px'})
label(for="fullarrow" style={'margin-right':'10px'}) Full arrow
input#lock(type="checkbox", style={'margin-right': '10px', 'margin-bottom': '10px'}, checked)
label(for="lock" style={'margin-right':'10px'}) Use pointer lock
input#collisions(type="checkbox", style={'margin-right': '10px', 'margin-bottom': '10px'}, checked)
label(for="collisions" style={'margin-right':'10px'}) Collisions
input#showarrows(type="checkbox", style={'margin-right': '10px', 'margin-bottom': '10px'}, checked)
label(for="showarrows" style={'margin-right':'10px'}) Show arrows

View File

@ -74,7 +74,6 @@ PrototypeTools:
--js Hermite.js \
--js Camera.js \
--js PointerCamera.js \
--js PointerLockCamera.js \
--js CameraContainer.js \
--js prototype/ArrowCamera.js \
--js prototype/FixedCamera.js \

View File

@ -11,7 +11,7 @@ var ButtonManager = function(cameras, previewer) {
this.undoElement = document.getElementById('undo');
this.redoElement = document.getElementById('redo');
this.pointerLockElement = document.getElementById('lock');
this.collisionElement = document.getElementById('collisions');
this.showarrowsElement = document.getElementById('showarrows');
this.recommendationElement = document.getElementById('recommendation');
@ -19,11 +19,6 @@ var ButtonManager = function(cameras, previewer) {
this.fullscreenElement.onclick = function() {fullscreen();};
(function(self) {
self.pointerLockElement.onchange = function() {
self.cameras.mainCamera().shouldLock = self.pointerLockElement.checked;
}
self.undoElement.onclick = function() {self.cameras.mainCamera().undo(); self.updateElements();}
self.redoElement.onclick = function() {self.cameras.mainCamera().redo(); self.updateElements();}
@ -36,6 +31,7 @@ var ButtonManager = function(cameras, previewer) {
};
self.collisionElement.onchange = function() {self.cameras.mainCamera().collisions = self.collisionElement.checked;}
self.showarrowsElement.onchange = function() {self.showArrows = self.showarrowsElement.checked;}
self.resetElement.onclick = function() {