From e6e78a0f6fceab1c8b5c64fdc4adbf109d402891 Mon Sep 17 00:00:00 2001 From: e7d Date: Sun, 2 Jun 2019 11:47:31 +0200 Subject: [PATCH] fixed gamepad identifiers --- js/gamepad.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/gamepad.js b/js/gamepad.js index 0dd5ad6..a2b2e9c 100644 --- a/js/gamepad.js +++ b/js/gamepad.js @@ -30,16 +30,21 @@ class Gamepad { // gamepad collection default values this.gamepads = {}; this.gamepadIdentifiers = { - debug: { + "debug": { id: /debug/, name: "Debug", colors: [] }, - ds4: { + "ds4": { id: /054c.*?05c4/, name: "DualShock 4", colors: ["black", "white", "red", "blue"] }, + "switch-pro": { + id: /057e/, + name: "Nintendo Switch Pro Controller", + colors: ["black"] + }, "xbox-one": { id: /xinput|XInput/, name: "Xbox One",