Skip to content

Commit

Permalink
realize fullscreen options (resize canvas and lock pointer) with chec…
Browse files Browse the repository at this point in the history
…kboxes
  • Loading branch information
MichaelRiss committed Mar 6, 2013
1 parent a7fa285 commit aaa4282
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/shell.html
Original file line number Diff line number Diff line change
Expand Up @@ -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/>
Expand Down

0 comments on commit aaa4282

Please sign in to comment.