Browse Source

[HTML5] Fix gamepad samples not being properly reset.

(cherry picked from commit 93968e1451595ad4f2dc290497cebcc0bc7314a6)
Fabio Alessandrelli 3 years ago
parent
commit
82c83a0636
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/javascript/js/libs/library_godot_input.js

+ 1 - 1
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);