mirror of https://github.com/godotengine/godot
[HTML5] Fix gamepad samples not being properly reset.
(cherry picked from commit 93968e1451)
This commit is contained in:
parent
18d676636d
commit
147e2b7c92
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue