Browse Source

Fixed signal input variable name

Andrea Catania 7 years ago
parent
commit
2f9354016f
1 changed files with 1 additions and 1 deletions
  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_HSPLIT);
 	BIND_ENUM_CONSTANT(CURSOR_HELP);
 	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 {
 void Input::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const {