From 7ea6c192c2cf6bcbf4a767e70d6dce1266e1e964 Mon Sep 17 00:00:00 2001 From: Codinget Date: Sun, 5 Apr 2020 20:58:35 +0200 Subject: [PATCH] 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 @@
+