Explorar o código

[HTML5] Fix gamepad samples not being properly reset.

Fabio Alessandrelli %!s(int64=3) %!d(string=hai) anos
pai
achega
93968e1451
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);