Kinesim/vendor/threex/examples/THREEx.KeyboardState.html

14 lines
293 B
HTML
Raw Permalink Normal View History

2024-10-03 06:42:49 +05:30
<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>