topical media & game development

talk show tell print

mobile-query-three-vendor-threex-examples-threex.domevent-vendor-threex-examples-THREEx.KeyboardState.htm / htm



  <html>
  <body>
          <script src="../THREEx.KeyboardState.js"></script>
          <script>
          var keyboard        = new THREEx.KeyboardState();
  
          setInterval(function(){
                  var key                = "alt+left";
                  var pressed        = keyboard.pressed(key);
                  console.log("key", key, "pressed", pressed);
          }, 100);
          </script>
  </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.