aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Riss <Michael.Riss@gmx.de>2013-03-03 21:10:44 +0100
committerMichael Riss <Michael.Riss@gmx.de>2013-03-06 10:44:36 +0100
commitaaa428216a0c4b8b3b1ab76d53a0a61edf2c974e (patch)
treec12ca7f8af3db7ae7b83da5b1f669d139d097373
parenta7fa2859f29a1e9a4ed629c4105d56c83a9ea7fb (diff)
realize fullscreen options (resize canvas and lock pointer) with checkboxes
-rw-r--r--src/shell.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/shell.html b/src/shell.html
index 6f712a0a..5cf19cf2 100644
--- a/src/shell.html
+++ b/src/shell.html
@@ -20,10 +20,11 @@
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"></canvas>
<hr/>
<div class="emscripten">
- <input type="button" value="only fullscreen" onclick="Module.requestFullScreen(false, false)">
- <input type="button" value="fullscreen + resize" onclick="Module.requestFullScreen(false, true)">
- <input type="button" value="fullscreen + pointerLock" onclick="Module.requestFullScreen()"> <!--default-->
- <input type="button" value="fullscreen + pointerLock + resize" onclick="Module.requestFullScreen(true, true)">
+ <input type="checkbox" id="resize">Resize canvas
+ <input type="checkbox" id="pointerLock">Lock/hide mouse pointer
+ &nbsp;&nbsp;&nbsp;
+ <input type="button" value="Fullscreen" onclick="Module.requestFullScreen(document.getElementById('pointerLock').checked,
+ document.getElementById('resize').checked)">
</div>
<hr/>