diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-11 23:01:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-11 23:01:33 +0200 |
commit | 20a32d6a2effd71a6093305622dbb4f4b82a2cf9 (patch) | |
tree | c137e68e9b8ff30e4207a5139a10e94321b7f42f /core/os/input.cpp | |
parent | 064f2f4763a9d1619573730c940afab204192519 (diff) | |
parent | 8f1ed9aaeed497a861cdc9e369f357021288b81e (diff) |
Merge pull request #12039 from Hinsbart/expose_joy_connection
Input: expose joy_connection_changed()
[ci skip]
Diffstat (limited to 'core/os/input.cpp')
-rw-r--r-- | core/os/input.cpp | 1 |
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); |