2
0
Эх сурвалжийг харах

[HTML5] Fix gamepad samples not being properly reset.

Fabio Alessandrelli 3 жил өмнө
parent
commit
93968e1451

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