Sha256: 31a7a1ded106b617f7161d2423753734e010dc78cce04c6a510dfbb7a78d43ac
Contents?: true
Size: 800 Bytes
Versions: 25
Compression:
Stored size: 800 Bytes
Contents
--- layout: default title: "Keypress" --- Keypress ====== Keypress is a robust keyboard input capturing Javascript utility focused on input for games. For details and documentation, please visit [http://dmauro.github.io/Keypress/](http://dmauro.github.io/Keypress/). ## Simple Example <p><button class='btn btn-info' id='shift-s'>Hellooooooo, press shift+s to slideToggle me</button></p> ~~~js var listener = new window.keypress.Listener() listener.simple_combo("shift s", function() { console.log("You pressed shift and s"); $('#shift-s').slideToggle() }) ~~~ <script> $(function () { var listener = new window.keypress.Listener() listener.simple_combo("shift s", function() { console.log("You pressed shift and s"); $('#shift-s').slideToggle() }) }) </script>
Version data entries
25 entries across 25 versions & 1 rubygems