{"_id":"input.js","_rev":"19-7e91a6410b4788d065712b495aba1bfb","name":"input.js","description":"Update input states every frame","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.1":{"name":"input.js","version":"1.0.1","description":"Update input states every frame","main":"index.js","scripts":{"start":"electron","server":"http-server ./ -a localhost -p 8002 -c-1","build":"rollup --config ./script/rollup.config.js","test":"npm run build && tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.6.3","http-server":"^0.9.0","memory-stats":"^1.0.2","rollup":"^0.41.4"},"gitHead":"5e672221b704b3b010e992d9d0b2318dfa8357a8","_id":"input.js@1.0.1","_shasum":"973b7a3f315596d562f26e33746aec616c6a65ad","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"shasum":"973b7a3f315596d562f26e33746aec616c6a65ad","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.0.1.tgz","integrity":"sha512-oOlHe/Oinjhvlc7FFXsbzdd4n4rx3ksHogVCxHxwOTLnwxj8FdYVJQQoWyE4zVTaTj66ilVWZkVAkskq8XWijg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC7/t+U4PhHRIGyNk3+n8jdSxPF9EcXE7LLhuff7FV8nAiA6eSmPJxVWO7/MysXknIzBiLAwBkKrPXP/+Yfu4alS9A=="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/input.js-1.0.1.tgz_1489399630415_0.5988717374857515"}},"1.0.2":{"name":"input.js","version":"1.0.2","description":"Update input states every frame","main":"dist/input.js","scripts":{"start":"electron","server":"http-server ./ -a localhost -p 8002 -c-1","build":"rollup --config ./script/rollup.config.js","min":"uglifyjs ./dist/input.js --source-map ./dist/input.min.js.map -o ./dist/input.min.js","release":"npm run build && npm run min","test":"npm run build && tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.6.3","http-server":"^0.9.0","memory-stats":"^1.0.2","rollup":"^0.41.4","uglify-js":"git+https://github.com/mishoo/UglifyJS2.git#harmony"},"gitHead":"9117e6c224a1c6ba6994853ac70f2159fba31546","_id":"input.js@1.0.2","_shasum":"56d454562b399dd5039569663620436188699c61","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"shasum":"56d454562b399dd5039569663620436188699c61","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.0.2.tgz","integrity":"sha512-HB9NV2IcmadLW1m6depBVbDS4Lrzv816gD/qcJ1ZEmFlFq2CLgAgM9CDAxdfp+k4pwSIz2wTYptHvE/1hp8bqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrg8b9eEOuSaw0AnJQ0q7B2lhdFeGUW77nHgva2WmYJQIhAMsJHdDBUVd9WE6g+He5VqtpDiNlg5NlPg+/NCszkv2d"}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/input.js-1.0.2.tgz_1489402866636_0.5956585332751274"}},"1.0.3":{"name":"input.js","version":"1.0.3","description":"Update input states every frame","main":"dist/input.js","scripts":{"start":"electron","server":"http-server ./ -a localhost -p 8002 -c-1","build":"rollup --config ./script/rollup.config.js","min":"uglifyjs ./dist/input.dev.js --source-map ./dist/input.min.js.map -o ./dist/input.min.js","release":"npm run build && npm run min","test":"npm run build && tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.6.3","http-server":"^0.9.0","memory-stats":"^1.0.2","rollup":"^0.41.4","uglify-js":"git+https://github.com/mishoo/UglifyJS2.git#harmony"},"gitHead":"00ce21cfa9343ccfd709f69dd3358058611d8717","_id":"input.js@1.0.3","_shasum":"cc7ce1a793a7d5d1e649413fcf30e5e82c1ac5ee","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"shasum":"cc7ce1a793a7d5d1e649413fcf30e5e82c1ac5ee","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.0.3.tgz","integrity":"sha512-qO9kdk6AwZ+fiDMYfGir5D5s26DQR8tbtqbmrPwC5eWXdt6kqJ8yzzniRm9zW4xu31Xp1b5QQNnyslDLgpOkSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCH18kYCBM6lUqxREf0r2M7canDq2V7XJp2Sb+NSiIACwCIQCBaXmUPwYqfuZPohSVpD13zoU7J5juOjaVmDW31OVorA=="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/input.js-1.0.3.tgz_1489403860768_0.34328902093693614"}},"1.0.4":{"name":"input.js","version":"1.0.4","description":"Update input states every frame","main":"dist/input.js","scripts":{"start":"electron","server":"http-server ./ -a localhost -p 8002 -c-1","build":"rollup --config ./script/rollup.config.js","min":"uglifyjs ./dist/input.dev.js --source-map ./dist/input.min.js.map -o ./dist/input.min.js","release":"npm run build && npm run min","test":"npm run build && tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.6.3","http-server":"^0.9.0","memory-stats":"^1.0.2","rollup":"^0.41.4","uglify-js":"git+https://github.com/mishoo/UglifyJS2.git#harmony"},"gitHead":"619264de51cdc763f7f8d0c7e9aff21aaa373c41","_id":"input.js@1.0.4","_shasum":"13bdf9a4f0a38218dfca780138f063392d6756f8","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"shasum":"13bdf9a4f0a38218dfca780138f063392d6756f8","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.0.4.tgz","integrity":"sha512-SCFByuWOGqMR7ZTfDwaLIIJJiAYrb5pvulhEcq8F3XSTqkplS4u9QIQe9E0Ms2upJ/HMQwAxbm4Yia9j92pZtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHVddRxERxem/dL4kMZIE4JybMxYEGcHBGpEBZ9UmNA+AiAOQKuucZrLyOKjVtlKIfaQk2IzMwWIJ9p/zDEauSbDLA=="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/input.js-1.0.4.tgz_1489404053109_0.5159058882854879"}},"1.1.0":{"name":"input.js","version":"1.1.0","description":"Update input states every frame","main":"dist/input.js","scripts":{"start":"electron","server":"preview -p 8002 -e examples","build":"rollup --config ./script/rollup.config.js","min":"uglifyjs ./dist/input.dev.js --source-map ./dist/input.min.js.map -o ./dist/input.min.js","release":"npm run build && npm run min","test":"npm run build && tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.6.3","memory-stats":"^1.0.2","preview-server":"^1.0.3","rollup":"^0.41.4","uglify-js":"git+https://github.com/mishoo/UglifyJS2.git#harmony"},"gitHead":"15340e281fcb8c52df71c84ca0a48c2426b28d14","_id":"input.js@1.1.0","_shasum":"ef0be675c6b8d6f3b8e399916faaf160c0bf706a","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"shasum":"ef0be675c6b8d6f3b8e399916faaf160c0bf706a","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.1.0.tgz","integrity":"sha512-AqJdNsyFIz+a/vddkVc3ZaGj8HT8JYW2EYcl4wsxXLUTcJN3VrgYk/UNAfJlGunrzbBr1nRxX9jKBD5APMydHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0ZDuIaXefuMBAVdCER0YyVaQO/vphH0BYlpIqiwEtsgIgcGZoRmXSuMn9qBIq9DeGTln060jHqT80iePZ+KYhwHI="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/input.js-1.1.0.tgz_1489485421071_0.5522889192216098"}},"1.1.1":{"name":"input.js","version":"1.1.1","description":"Update input states every frame","main":"dist/input.js","scripts":{"start":"electron","server":"preview -p 8002 -e examples","build":"rollup --config ./script/rollup.config.js","min":"uglifyjs ./dist/input.dev.js --source-map ./dist/input.min.js.map -o ./dist/input.min.js","release":"npm run build && npm run min","test":"npm run build && tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.6.3","memory-stats":"^1.0.2","preview-server":"^1.0.7","rollup":"^0.41.4","uglify-js":"git+https://github.com/mishoo/UglifyJS2.git#harmony"},"gitHead":"463fb2521bc7f38460549a18ade166a792841089","_id":"input.js@1.1.1","_shasum":"26d0cd64b32f4e51ea38d082d244010f616aa61f","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"shasum":"26d0cd64b32f4e51ea38d082d244010f616aa61f","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.1.1.tgz","integrity":"sha512-f6Y/n7yZzMlKGZQ77TdR6Updll+mMNf7hjPXs9fnEOuHAWsZ6M/9k9tPgQMCA0vu0e3hchZeasf+tzmAK6blbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC61td/zKnjBWZhBrpoI21+Jrf4O0fbmN0cMFPasYIlqAiEA8E0QidHK1T71KgFq3WSLI6alkPp98W0Lrr6ERXb9LOY="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/input.js-1.1.1.tgz_1489563121560_0.9082492359448224"}},"1.1.2":{"name":"input.js","version":"1.1.2","description":"Update input states every frame","main":"dist/input.js","scripts":{"start":"electron","server":"preview -p 8002 -e examples","build":"rollup --config ./script/rollup.config.js","min":"uglifyjs ./dist/input.dev.js --mangle --source-map ./dist/input.min.js.map -o ./dist/input.min.js","release":"npm run build && npm run min","test":"npm run build && tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.6.3","fs-jetpack":"^0.13.0","memory-stats":"^1.0.2","preview-server":"^1.0.7","rollup":"^0.41.4","uglify-js":"git+https://github.com/mishoo/UglifyJS2.git#harmony"},"gitHead":"8c8ef8a88a48cf30474ea342d6c471c820391d3a","_id":"input.js@1.1.2","_shasum":"cbe39e92b6151bcab2a4884b8f4096342589ca6e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"shasum":"cbe39e92b6151bcab2a4884b8f4096342589ca6e","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.1.2.tgz","integrity":"sha512-gt7oIUg8AWm4I9B2Mq3JJtgF3fgAREJMxiSETRdtJFyt4QfvdN9xygTw9yY6I6ecaFNJ3zDOhQ2NPvXEcQHXPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGc9n2mq6vJVhO3VTES73gX1/YK3KlKLWsuHX/+bfkBBAiEA4d7nxqTpvwThO5H/cGaLuAP7zWAp/ppfYo1ln9oo0sc="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/input.js-1.1.2.tgz_1490160239727_0.864266887307167"}},"1.1.3":{"name":"input.js","version":"1.1.3","description":"Update input states every frame","main":"dist/input.js","scripts":{"build:dev":"rollup -c ./script/rollup.config.js","build:min":"uglifyjs ./dist/input.dev.js --mangle --source-map url=input.min.js.map -o ./dist/input.min.js","release":"npm run build:dev && npm run build:min","start":"electron","server":"preview -p 8002 -e examples","dev":"rollup -w -c ./script/rollup.config.js","test":"npm run build:dev && tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.7.3","fs-jetpack":"^0.13.0","lstats.js":"^1.2.0","preview-server":"^1.0.7","rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2","uglify-es":"^3.0.15"},"gitHead":"e2c8c9cf3c45147e0e044085609f6bfbf9ed9a86","_id":"input.js@1.1.3","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"integrity":"sha512-u72marKPOwwctE2Vut4lkwdokCR6iLHI4x7+uVM03Euyjb5jVxKofqHzPtXB/kJxfOI4EpPm/PULc2GmhAEW8A==","shasum":"51b9af7263c62f3fb9638c033eb6fce8edd1f623","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.1.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaCfRCKdbZvHZ0FwOwTd+0t3m1PDZVW1xe0J51sSUzMwIgDJaW/TQcFTG+SQ/usD69n73G3gI/mGlJ6GOThGMxtD0="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/input.js-1.1.3.tgz_1498796893436_0.7472941807936877"}},"1.1.4":{"name":"input.js","version":"1.1.4","description":"Update input states every frame","main":"dist/input.js","scripts":{"build:dev":"rollup -c ./script/rollup.config.js","build:min":"uglifyjs ./dist/input.dev.js --mangle --source-map url=input.min.js.map -o ./dist/input.min.js","release":"npm run build:dev && npm run build:min","start":"electron","server":"preview -p 8002 -e examples","dev":"rollup -w -c ./script/rollup.config.js","test":"npm run build:dev && tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.7.3","fs-jetpack":"^0.13.0","lstats.js":"^1.2.0","preview-server":"^1.0.7","rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2","uglify-es":"^3.0.15"},"gitHead":"8553a067161ff65707402eecf67b2a7831284f76","_id":"input.js@1.1.4","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"integrity":"sha512-JNNPiFbnGzt+bhRQnIm5vd3d8M2+PsYdxHOn/ET21HHJs14eYx3zU4yR+e0w5IshkiKqojjlUG9O9B6PcoW+fQ==","shasum":"bf4417c2e04730e32be30ef413041dae922ecec8","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.1.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqQ0hdEeMBEvVWxvP7ZsB5ww7htAivyjuMq1Ysjx8/VAiEA61Jl2lDOj7UUR2Xwek0wZQKe4k0jW5MiziBWXs7kVyI="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/input.js-1.1.4.tgz_1498821055704_0.042422537226229906"}},"1.1.5":{"name":"input.js","version":"1.1.5","description":"Update input states every frame","main":"dist/input.js","jsnext:main":"index.js","scripts":{"build:dev":"rollup -c ./script/rollup.config.js","build:min":"uglifyjs ./dist/input.dev.js --mangle --source-map url=input.min.js.map -o ./dist/input.min.js","release":"npm run build:dev && npm run build:min","start":"electron","server":"preview -p 8002 -e examples","dev":"rollup -w -c ./script/rollup.config.js","test":"npm run build:dev && tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.7.3","fs-jetpack":"^0.13.0","lstats.js":"^1.2.0","preview-server":"^1.0.7","rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2","uglify-es":"^3.0.15"},"gitHead":"6440898d115308c72bfd02380365249585175f58","_id":"input.js@1.1.5","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"integrity":"sha512-7nUDwW5siu5PxlGa+3L3za1SwY2Q+9vKBVEKNCXAQ8lgBU88lh2tBGxbVO77kgwKPfT2zJtYwc+SZybktkUijg==","shasum":"aaf8eb89fdc63b42f5cd8af62d32d81c7d51dd15","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.1.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDAgXAEHJeTZcIJsX3ObOjMrKCbeYLGQLXEqw2hr6RxpAiAd1P3vyTMSB6Q2p9IiJK8w3VFqypENu6LUy0uIykk3kQ=="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/input.js-1.1.5.tgz_1499332850051_0.297588923946023"}},"1.1.6":{"name":"input.js","version":"1.1.6","description":"Update input states every frame","main":"dist/input.js","module":"index.js","jsnext:main":"index.js","scripts":{"prepare":"npm run build","pretest":"npm run build:dev","build":"npm run build:dev && npm run build:min","build:dev":"rollup -c ./script/rollup.config.js","build:min":"uglifyjs ./dist/input.dev.js --mangle --source-map url=input.min.js.map -o ./dist/input.min.js","dev":"rollup -w -c ./script/rollup.config.js","start":"electron ./examples","server":"preview -p 8002 -e examples","test":"tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.7.3","fs-jetpack":"^0.13.0","lstats.js":"^1.2.0","preview-server":"^1.0.7","rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2","uglify-es":"^3.0.15"},"files":["dist","lib","index.js"],"gitHead":"6ee59f8e7f6a0905b89de6ba3386c5cb3dfdb3de","_id":"input.js@1.1.6","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"integrity":"sha512-4AQKWN76gvnG11BohSIgpcdRw2FEfUVkDZs7neTlj0z91OLGGW3NfYqXfie/7roMTUaqGiVajV5pxb6xKQmDFg==","shasum":"059fe804de3e2507deb08d4c49bccac6d2cf7660","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.1.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuAzOEuYPExrtDaE5DDjio8ZyatyK7/ttzLkL2IuzhCAIgR7E3Vy8XjpDbILs1iH9wUjN8J6U5ZBuqlbKksszm+gI="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/input.js-1.1.6.tgz_1499842720998_0.8801893587224185"}},"1.1.7":{"name":"input.js","version":"1.1.7","description":"Update input states every frame","main":"dist/input.js","module":"index.js","jsnext:main":"index.js","scripts":{"prepare":"npm run build","pretest":"npm run build:dev","build":"npm run build:dev && npm run build:min","build:dev":"rollup -c ./script/rollup.config.js","build:min":"uglifyjs ./dist/input.dev.js --mangle --source-map url=input.min.js.map -o ./dist/input.min.js","dev":"rollup -w -c ./script/rollup.config.js","start":"electron ./examples","server":"preview -p 8002 -e examples","test":"tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{},"devDependencies":{"electron":"^1.7.3","fs-jetpack":"^0.13.0","lstats.js":"^1.2.0","preview-server":"^1.0.7","rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2","uglify-es":"^3.0.15"},"files":["dist","lib","index.js"],"gitHead":"2b694b8ec1c5db04d4981a47d7595d87c5c444c1","_id":"input.js@1.1.7","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"integrity":"sha512-9u5441oVsXbb6vhJx503+L66JlG/FN5szW4bSw1tlhe8WT2gsdWr+g4nSPv0blMI9T8TfrgR8s30UXtbnt6pWQ==","shasum":"3c910da7ee2416f1892cc01e69b1fbe3325d74e3","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.1.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIETUStfrsKbeBvAHnBMMhuJA0YpRdMj1Dd3dKjozkywWAiEA6SO/JBrtjFdy7Wu3VGRZby0UGkU8dtgwwkzZ9qH9Pd4="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/input.js-1.1.7.tgz_1508404567510_0.2387337947729975"}},"1.2.0":{"name":"input.js","version":"1.2.0","description":"Update input states every frame","main":"dist/input.js","module":"index.js","jsnext:main":"index.js","scripts":{"prepare":"npm run build","pretest":"npm run build:dev","build":"npm run build:dev && npm run build:min","build:dev":"rollup -c ./script/rollup.config.js","build:min":"uglifyjs ./dist/input.dev.js --mangle --source-map url=input.min.js.map -o ./dist/input.min.js","dev":"rollup -w -c ./script/rollup.config.js","start":"electron ./examples","server":"preview -p 8002 -e examples","test":"tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard","touch"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{"memop":"^1.6.0"},"devDependencies":{"electron":"^1.8.1","fs-jetpack":"^0.13.0","lstats.js":"^1.2.7","preview-server":"^1.0.7","rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2","uglify-es":"^3.0.15","vconsole":"^3.0.0"},"files":["dist","lib","index.js"],"gitHead":"6c429cb00696e7cc842d00e1b4b8f92790beb482","_id":"input.js@1.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"integrity":"sha512-ko650FvZotZq/Mu2/c6l9/+UWLWKYOhU9gGHkcFFflT3qMPB2Hjva1vLSPzgprHpvpCC17/VtCdFV1jDhckOyQ==","shasum":"c1ccaeae475bb18e8636353165612916c78f077f","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHu+mRU9KPKq+Zk8Nmtd7pAUbZOAE3hSI/N7YHU8+sKOAiEAypqzqj5LQtFSyt1lNgVWcpgVmJY6VNLLQpKZToA/uE4="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/input.js-1.2.0.tgz_1509334303381_0.8232099723536521"}},"1.2.1":{"name":"input.js","version":"1.2.1","description":"Update input states every frame","main":"dist/input.js","module":"index.js","jsnext:main":"index.js","scripts":{"prepare":"npm run build","pretest":"npm run build:dev","build":"npm run build:dev && npm run build:min","build:dev":"rollup -c ./script/rollup.config.js","build:min":"uglifyjs ./dist/input.dev.js --mangle --source-map url=input.min.js.map -o ./dist/input.min.js","dev":"rollup -w -c ./script/rollup.config.js","start":"electron ./examples","server":"preview -p 8002 -e examples","test":"tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard","touch"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{"memop":"^1.6.0"},"devDependencies":{"electron":"^1.8.1","fs-jetpack":"^0.13.0","lstats.js":"^1.2.7","preview-server":"^1.1.2","rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2","selenium-webdriver":"^3.6.0","uglify-es":"^3.0.15","vconsole":"^3.0.0"},"files":["dist","lib","index.js"],"gitHead":"7c0ffaa6827cc0c868b933c2a9a366e20631ae94","_id":"input.js@1.2.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"integrity":"sha512-pQB7OE8ygRXDBuEQ0C6fQozAC4ORHSWbmwjbyktwe/RFfJp2snrDu5HhPuNKMGxiP9ppX3ZrhCBvs+5SkZfAsA==","shasum":"2e046653bc53369da39dcfac9be26c76274061b8","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDs/kep1r+ifUvUakoNDyLuhPlhm7Y9nrKT67HKT+VEFwIhAIPWb/9schorsVqMUSrw0tKvZRoDepmQkQ6qA6aGxJdc"}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/input.js-1.2.1.tgz_1510552562736_0.060673644533380866"}},"1.2.2":{"name":"input.js","version":"1.2.2","description":"Update input states every frame","main":"dist/input.js","module":"index.js","jsnext:main":"index.js","scripts":{"prepare":"npm run build","pretest":"npm run build:dev","build":"npm run build:dev && npm run build:min","build:dev":"rollup -c ./script/rollup.config.js","build:min":"uglifyjs ./dist/input.dev.js --mangle --source-map url=input.min.js.map -o ./dist/input.min.js","dev":"rollup -w -c ./script/rollup.config.js","start":"electron ./examples","server":"preview -p 8002 -e examples","test":"tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard","touch"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{"memop":"^1.6.0"},"devDependencies":{"electron":"^1.8.1","fs-jetpack":"^0.13.0","lstats.js":"^1.2.7","preview-server":"^1.1.2","rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2","selenium-webdriver":"^3.6.0","uglify-es":"^3.0.15","vconsole":"^3.0.0"},"files":["dist","lib","index.js"],"gitHead":"5b6b2d8f6f286c713f2fad0d54ae75edc72eeb45","_id":"input.js@1.2.2","_npmVersion":"5.5.1","_nodeVersion":"9.2.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"integrity":"sha512-yz24zn0EwMTJFgxM6xu07fpgvaRhLi6xZ5nKNc6GWDIUV/Vjxj8VH1TdqAnA1p7lHwAfnHAjIZjW4g9h6LBiiA==","shasum":"de70cf37d7c57fb5cc87a46c05d630af67691be9","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTpfmfDh1Q0JujzSF6KctU/rkgXzbg6+APoO++Sv8HBAiBzzxrqPc11nfsX/C1q+crG+pCBom4FT8FnBvXtsw8bnw=="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/input.js-1.2.2.tgz_1511408108251_0.16674342146143317"}},"1.2.3":{"name":"input.js","version":"1.2.3","description":"Update input states every frame","main":"dist/input.js","module":"index.js","jsnext:main":"index.js","scripts":{"prepare":"npm run build","pretest":"npm run build:dev","build":"npm run build:dev && npm run build:min","build:dev":"rollup -c ./script/rollup.config.js","build:min":"uglifyjs ./dist/input.dev.js --mangle --source-map url=input.min.js.map -o ./dist/input.min.js","dev":"rollup -w -c ./script/rollup.config.js","start":"electron ./examples","server":"preview -p 8002 -e examples","test":"tap test/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard","touch"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{"memop":"^1.6.0"},"devDependencies":{"electron":"^1.8.1","fs-jetpack":"^0.13.0","lstats.js":"^1.2.7","preview-server":"^1.1.2","rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2","selenium-webdriver":"^3.6.0","uglify-es":"^3.0.15","vconsole":"^3.0.0"},"files":["dist","lib","index.js"],"gitHead":"bbb2fd9aaf80e13fbc992c80cb949a3e07813672","_id":"input.js@1.2.3","_npmVersion":"5.5.1","_nodeVersion":"9.2.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"integrity":"sha512-g7XmyyZt5UGwJSRNoy9SDUVEvDnreCoHrOGxFKIEJEYyXJjoAJGNWFF1PazCZ1KTE4BHZvz0RHXQmEdX/dqRVg==","shasum":"0ffe67d5314338420db67868ed6c77f61cf853d0","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.2.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFHBdjtu7Bbj7XNyDAG2KGDxSQCKgaFAZrHzerIvd+qAiA6Nf70OJXUBp4nwRrsHcHCbaVDhOdb7xhvaB9yi69nxA=="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/input.js-1.2.3.tgz_1512346377634_0.9561090485658497"}},"1.3.0":{"name":"input.js","version":"1.3.0","description":"Update input states every frame","main":"dist/input.js","module":"index.js","jsnext:main":"index.js","scripts":{"prepare":"npm run build","pretest":"npm run build:dev","build":"npm run build:dev && npm run build:min","build:dev":"rollup -c ./script/rollup.config.js","build:min":"uglifyjs ./dist/input.dev.js --mangle --source-map url=input.min.js.map -o ./dist/input.min.js","dev":"rollup -w -c ./script/rollup.config.js","start":"electron ./examples","server":"preview -p 8002 -e examples","test":"electron-node-tap ./test/*.spec.js --renderer"},"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"keywords":["input","mouse","keyboard","touch"],"author":{"name":"jwu"},"license":"MIT","bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"homepage":"https://github.com/gamedev-js/input.js/issues","dependencies":{"electron-node-tap":"^1.1.4","memop":"^1.6.0"},"devDependencies":{"electron":"^1.8.1","fs-jetpack":"^0.13.0","lstats.js":"^1.2.7","preview-server":"^1.1.2","rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2","selenium-webdriver":"^3.6.0","uglify-es":"^3.0.15","vconsole":"^3.0.0"},"files":["dist","lib","index.js"],"gitHead":"072de8c91dff08b15e2d53b163436ea9ce9a6ffb","_id":"input.js@1.3.0","_npmVersion":"5.6.0","_nodeVersion":"9.2.0","_npmUser":{"name":"johnnywu","email":"KarasAya@gmail.com"},"dist":{"integrity":"sha512-3bIlLGXSNzCZsulL+kfsCPPseOfvbkXTF/9od7DspvBhi2kvl4pu4uMCQLvRw1IZXrJ2AtrTmWb7ba3vhYg+7w==","shasum":"8392a45e3e48e44cea491b4b342c67f2218ecb99","tarball":"https://registry.npmjs.org/input.js/-/input.js-1.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGb6LBUxDRU1MOsQB0uSpCngXNWiOtT9fU6dL6+MfjUjAiEAoqa/YD4vocp+SWm9EbEUtOqakNTiPMBqG2NUTd/5wkY="}]},"maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/input.js-1.3.0.tgz_1516415699123_0.15965973981656134"}}},"readme":"## Input States\n\nUpdate input states every frame.\n\n## Install\n\n```bash\nnpm install input.js\n```\n\n## Usage\n\n```javascript\nlet input = new Input();\n\nfunction animate() {\n  if (input.keydown('w')) {\n    console.log('key w down');\n  }\n\n  input.reset();\n  requestAnimationFrame(animate);\n}\nrequestAnimationFrame(animate);\n```\n\n## Documentation\n\n- [Mouse](docs/mouse.md)\n- [Keyboard](docs/keyboard.md)\n- [Touches](docs/touches.md)\n\n## TODO\n\n - options\n   - lock-filter (a filter function to decide if enter the lock state)\n - api\n   - installTouches()\n - extensions\n   - input.mouseclick(name, downupSpan, dragDistance)\n   - input.mouseclicks(name, clickCount, downupSpan, clickSpan, dragDistance)\n   - input.keyclick(name, downupSpan)\n   - input.keyclicks(name, clickCount, downupSpan, clickSpan)\n\n## License\n\nMIT © 2017 Johnny Wu","maintainers":[{"name":"johnnywu","email":"KarasAya@gmail.com"}],"time":{"modified":"2022-06-19T01:27:04.608Z","created":"2017-03-13T10:07:12.038Z","1.0.1":"2017-03-13T10:07:12.038Z","1.0.2":"2017-03-13T11:01:08.304Z","1.0.3":"2017-03-13T11:17:41.000Z","1.0.4":"2017-03-13T11:20:54.920Z","1.1.0":"2017-03-14T09:57:02.781Z","1.1.1":"2017-03-15T07:32:03.308Z","1.1.2":"2017-03-22T05:24:01.680Z","1.1.3":"2017-06-30T04:28:13.639Z","1.1.4":"2017-06-30T11:10:55.853Z","1.1.5":"2017-07-06T09:20:50.184Z","1.1.6":"2017-07-12T06:58:41.157Z","1.1.7":"2017-10-19T09:16:07.591Z","1.2.0":"2017-10-30T03:31:43.549Z","1.2.1":"2017-11-13T05:56:02.804Z","1.2.2":"2017-11-23T03:35:08.383Z","1.2.3":"2017-12-04T00:12:57.719Z","1.3.0":"2018-01-20T02:34:59.287Z"},"homepage":"https://github.com/gamedev-js/input.js/issues","keywords":["input","mouse","keyboard","touch"],"repository":{"type":"git","url":"git+https://github.com/gamedev-js/input.js.git"},"author":{"name":"jwu"},"bugs":{"url":"https://github.com/gamedev-js/input.js/issues"},"license":"MIT","readmeFilename":"README.md"}