瀏覽代碼

[HTML5] Fix gamepad samples not being properly reset.

(cherry picked from commit 93968e1451595ad4f2dc290497cebcc0bc7314a6)
Fabio Alessandrelli 3 年之前
父節點
當前提交
82c83a0636
共有 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) {
-			GodotEventListeners.samples = [];
+			GodotInputGamepads.samples = [];
 			function add(pad) {
 				const guid = GodotInputGamepads.get_guid(pad);
 				const c_id = GodotRuntime.allocString(pad.id);