Kinesim/vendor/threex/examples/THREEx.KeyboardState.html
Amit Kumar Nandi c51788eb87 Forgejo Up
2024-10-03 06:46:07 +05:30

14 lines
No EOL
293 B
HTML

<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>