fixed gamepad identifiers

This commit is contained in:
e7d 2019-06-02 11:47:31 +02:00
parent 1f13444d67
commit e6e78a0f6f

View File

@ -30,16 +30,21 @@ class Gamepad {
// gamepad collection default values // gamepad collection default values
this.gamepads = {}; this.gamepads = {};
this.gamepadIdentifiers = { this.gamepadIdentifiers = {
debug: { "debug": {
id: /debug/, id: /debug/,
name: "Debug", name: "Debug",
colors: [] colors: []
}, },
ds4: { "ds4": {
id: /054c.*?05c4/, id: /054c.*?05c4/,
name: "DualShock 4", name: "DualShock 4",
colors: ["black", "white", "red", "blue"] colors: ["black", "white", "red", "blue"]
}, },
"switch-pro": {
id: /057e/,
name: "Nintendo Switch Pro Controller",
colors: ["black"]
},
"xbox-one": { "xbox-one": {
id: /xinput|XInput/, id: /xinput|XInput/,
name: "Xbox One", name: "Xbox One",