From b12ac2fab9e09c354ab34f5920a6beb88948b143 Mon Sep 17 00:00:00 2001 From: Nathan DECHER Date: Sun, 5 Apr 2020 18:31:06 +0200 Subject: [PATCH 1/2] removed console.log which flooded the whole console --- src/js/input.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/js/input.js b/src/js/input.js index f1fc3b5..d222f3c 100644 --- a/src/js/input.js +++ b/src/js/input.js @@ -112,7 +112,6 @@ const handleGamepads={ const handleEvent=(type, evt) => { for(let handler of handlers) { - console.log(type, handler); let fn=handler[type]; if(fn) fn(evt); } From 3a571a9c30d4c58e8ce3b74436d09745bdc60079 Mon Sep 17 00:00:00 2001 From: Nathan DECHER Date: Sun, 5 Apr 2020 20:58:35 +0200 Subject: [PATCH 2/2] added quick restart and crosspad grid --- assets/config.json | 2 +- public/index.html | 1 + src/js/input.js | 39 +++++++++++++++++++++++++++++++++++---- src/js/main.js | 36 +++++++++++++++++++++++++++++------- src/less/hud.less | 34 ++++++++++++++++++++++++++++++++++ src/less/snek.less | 4 +++- 6 files changed, 103 insertions(+), 13 deletions(-) create mode 100644 src/less/hud.less diff --git a/assets/config.json b/assets/config.json index dacc60d..a880e01 100644 --- a/assets/config.json +++ b/assets/config.json @@ -1,7 +1,7 @@ { "touchscreen": { "enabled": true, - "mode": "swipe", + "mode": "crosspad", "deadzone": 50, "buffer": false }, diff --git a/public/index.html b/public/index.html index 0ac5787..0e6ae3d 100644 --- a/public/index.html +++ b/public/index.html @@ -19,6 +19,7 @@
+