summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2017-10-11 18:45:44 +0200
committerAndreas Haas <liu.gam3@gmail.com>2017-10-11 18:55:57 +0200
commit8f1ed9aaeed497a861cdc9e369f357021288b81e (patch)
treec8031628e46b5f5f16a8641ab6f0504b8765492c /core/os
parentdfb6602da065f8789ef0d9212af4636c9e09997c (diff)
Input: expose joy_connection_changed()
Diffstat (limited to 'core/os')
-rw-r--r--core/os/input.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/os/input.cpp b/core/os/input.cpp
index a4b82299a7..848b003d5e 100644
--- a/core/os/input.cpp
+++ b/core/os/input.cpp
@@ -58,6 +58,7 @@ void Input::_bind_methods() {
ClassDB::bind_method(D_METHOD("is_action_just_released", "action"), &Input::is_action_just_released);
ClassDB::bind_method(D_METHOD("add_joy_mapping", "mapping", "update_existing"), &Input::add_joy_mapping, DEFVAL(false));
ClassDB::bind_method(D_METHOD("remove_joy_mapping", "guid"), &Input::remove_joy_mapping);
+ ClassDB::bind_method(D_METHOD("joy_connection_changed", "device", "connected", "name", "guid"), &Input::joy_connection_changed);
ClassDB::bind_method(D_METHOD("is_joy_known", "device"), &Input::is_joy_known);
ClassDB::bind_method(D_METHOD("get_joy_axis", "device", "axis"), &Input::get_joy_axis);
ClassDB::bind_method(D_METHOD("get_joy_name", "device"), &Input::get_joy_name);