فهرست منبع

[HTML5] Fix gamepad samples not being properly reset.

Fabio Alessandrelli 3 سال پیش
والد
کامیت
93968e1451
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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) {
 		init: function (onchange) {
-			GodotEventListeners.samples = [];
+			GodotInputGamepads.samples = [];
 			function add(pad) {
 			function add(pad) {
 				const guid = GodotInputGamepads.get_guid(pad);
 				const guid = GodotInputGamepads.get_guid(pad);
 				const c_id = GodotRuntime.allocString(pad.id);
 				const c_id = GodotRuntime.allocString(pad.id);