Fix gamepad id showing as "undefined"

This commit is contained in:
Ethan O'Brien 2023-08-16 19:21:05 -05:00
parent f4ffcb3873
commit 91d1d279e4

View file

@ -28,7 +28,8 @@ class GamepadHandler {
const gamepadToSave = { const gamepadToSave = {
axes: [], axes: [],
buttons: {}, buttons: {},
index: oldGamepad.index index: oldGamepad.index,
id: oldGamepad.id
} }
hasGamepad = true; hasGamepad = true;