simpler gamepad identifiers for wider detection
This commit is contained in:
parent
0751e1128e
commit
c3eaa0821a
@ -29,23 +29,24 @@ class Gamepad {
|
|||||||
// gamepad collection default values
|
// gamepad collection default values
|
||||||
this.gamepads = {};
|
this.gamepads = {};
|
||||||
this.identifiers = {
|
this.identifiers = {
|
||||||
|
// See: https://html5gamepad.com/codes
|
||||||
debug: {
|
debug: {
|
||||||
id: /debug/,
|
id: /debug/,
|
||||||
name: "Debug",
|
name: "Debug",
|
||||||
colors: [],
|
colors: [],
|
||||||
},
|
},
|
||||||
ds4: {
|
ds4: {
|
||||||
id: /054c.*?05c4/,
|
id: /054c/,
|
||||||
name: "DualShock 4",
|
name: "DualShock 4",
|
||||||
colors: ["black", "white", "red", "blue"],
|
colors: ["black", "white", "red", "blue"],
|
||||||
},
|
},
|
||||||
// "switch-pro": {
|
// "switch-pro": {
|
||||||
// id: /057e.*?2009/,
|
// id: /057e/,
|
||||||
// name: "Switch Pro Controller",
|
// name: "Switch Pro Controller",
|
||||||
// colors: ["black"],
|
// colors: ["black"],
|
||||||
// },
|
// },
|
||||||
"xbox-one": {
|
"xbox-one": {
|
||||||
id: /045e.*?02ea|xinput|XInput/,
|
id: /045e|xinput|XInput/,
|
||||||
name: "Xbox One",
|
name: "Xbox One",
|
||||||
colors: ["black", "white"],
|
colors: ["black", "white"],
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user