From 147e2b7c927158c5a8dbc1c66eea980f270f6cb1 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sun, 30 Jan 2022 19:52:56 +0100 Subject: [PATCH] [HTML5] Fix gamepad samples not being properly reset. (cherry picked from commit 93968e1451595ad4f2dc290497cebcc0bc7314a6) --- platform/javascript/js/libs/library_godot_input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/javascript/js/libs/library_godot_input.js b/platform/javascript/js/libs/library_godot_input.js index 7a4d0d81260..1e64c260f8d 100644 --- a/platform/javascript/js/libs/library_godot_input.js +++ b/platform/javascript/js/libs/library_godot_input.js @@ -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);