瀏覽代碼

Merge pull request #18015 from AndreaCatania/patch-1

Fixed signal input variable name
Juan Linietsky 7 年之前
父節點
當前提交
440b7a9690
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/os/input.cpp

+ 1 - 1
core/os/input.cpp

@@ -111,7 +111,7 @@ void Input::_bind_methods() {
 	BIND_ENUM_CONSTANT(CURSOR_HSPLIT);
 	BIND_ENUM_CONSTANT(CURSOR_HELP);
 
-	ADD_SIGNAL(MethodInfo("joy_connection_changed", PropertyInfo(Variant::INT, "index"), PropertyInfo(Variant::BOOL, "connected")));
+	ADD_SIGNAL(MethodInfo("joy_connection_changed", PropertyInfo(Variant::INT, "device"), PropertyInfo(Variant::BOOL, "connected")));
 }
 
 void Input::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const {