[HTML5] Fix gamepad samples not being properly reset.

(cherry picked from commit 93968e1451)
This commit is contained in:
Fabio Alessandrelli 2022-01-30 19:52:56 +01:00 committed by Rémi Verschelde
parent 6209eede00
commit 82c83a0636
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -87,7 +87,7 @@ const GodotInputGamepads = {
},
init: function (onchange) {
GodotEventListeners.samples = [];
GodotInputGamepads.samples = [];
function add(pad) {
const guid = GodotInputGamepads.get_guid(pad);
const c_id = GodotRuntime.allocString(pad.id);