Jelajahi Sumber

[HTML5] Fix gamepad samples not being properly reset.

Fabio Alessandrelli 3 tahun lalu
induk
melakukan
93968e1451
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);