aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-06 12:44:29 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-06 12:44:29 -0800
commit756ab650e0548fd4d37637560f8ed76703723671 (patch)
tree57a9587a0ae82175f8a4a4d9040f68012aa0cbc7
parent154f2b7fa71d78d29d010c808025f10a984c705c (diff)
enable pointer lock checkbox by default
-rw-r--r--src/library_browser.js2
-rw-r--r--src/shell.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/library_browser.js b/src/library_browser.js
index 555e871d..4ed3008b 100644
--- a/src/library_browser.js
+++ b/src/library_browser.js
@@ -285,7 +285,7 @@ mergeInto(LibraryManager.library, {
this.resizeCanvas = resizeCanvas;
if (typeof this.lockPointer === 'undefined') this.lockPointer = true;
if (typeof this.resizeCanvas === 'undefined') this.resizeCanvas = false;
-
+
var canvas = Module['canvas'];
function fullScreenChange() {
Browser.isFullScreen = false;
diff --git a/src/shell.html b/src/shell.html
index 5cf19cf2..8743d403 100644
--- a/src/shell.html
+++ b/src/shell.html
@@ -21,7 +21,7 @@
<hr/>
<div class="emscripten">
<input type="checkbox" id="resize">Resize canvas
- <input type="checkbox" id="pointerLock">Lock/hide mouse pointer
+ <input type="checkbox" id="pointerLock" checked>Lock/hide mouse pointer
&nbsp;&nbsp;&nbsp;
<input type="button" value="Fullscreen" onclick="Module.requestFullScreen(document.getElementById('pointerLock').checked,
document.getElementById('resize').checked)">