topical media & game development

talk show tell print

mobile-sugar-examples-05.KeyAndMouseInput-index.htm / htm



  <!DOCTYPE html>
  <html>
    <head>
      <meta charset="utf-8">
      <title>05.KeyAndMouseInput</title>
      <style>
        body {
          margin: 0px;
        }
  
        div.picture {
          border: solid 5px white;
        }
  
        div.usage {
          position: absolute;
          z-index: 10;
          margin: 16px;
          padding: 8px;
        }
  
        p.message {
          color: green;
          text-shadow: -1px -1px white;
          margin: 0px 0px 8px 0px;
          padding: 0px;
        }
      </style>
      <script src="mobile-sugar-build-divsugar.js"></script>
      <script src="mobile-sugar-examples-05.KeyAndMouseInput-main.js"></script>
    </head>
    <body>
      <div class="usage">
        <p class="message">Drag: Move picture</p>
        <p class="message">Drag+Up/Down: Scale picture</p>
        <p class="message">Drag+Left/Right: Rotate picture</p>
      </div>
    </body>
  </html>
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.