summaryrefslogtreecommitdiffstats
path: root/core/os/input.cpp
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2016-07-05 14:07:46 +0200
committerAndreas Haas <liu.gam3@gmail.com>2016-07-05 14:08:02 +0200
commit45cfd199a46a6fdffb48cd367c69a336eb79590b (patch)
treea629154177841054cf8465180d5312e1a7461a37 /core/os/input.cpp
parent716dfa67a3c5a0a38205179c01676e05a718d244 (diff)
downloadredot-engine-45cfd199a46a6fdffb48cd367c69a336eb79590b.tar.gz
Input: add get_connected_joysticks() method.
fixes #5465
Diffstat (limited to 'core/os/input.cpp')
-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 dacddc0928..efbae57950 100644
--- a/core/os/input.cpp
+++ b/core/os/input.cpp
@@ -59,6 +59,7 @@ void Input::_bind_methods() {
ObjectTypeDB::bind_method(_MD("get_joy_axis","device","axis"),&Input::get_joy_axis);
ObjectTypeDB::bind_method(_MD("get_joy_name","device"),&Input::get_joy_name);
ObjectTypeDB::bind_method(_MD("get_joy_guid","device"),&Input::get_joy_guid);
+ ObjectTypeDB::bind_method(_MD("get_connected_joysticks"),&Input::get_connected_joysticks);
ObjectTypeDB::bind_method(_MD("get_joy_vibration_strength", "device"), &Input::get_joy_vibration_strength);
ObjectTypeDB::bind_method(_MD("get_joy_vibration_duration", "device"), &Input::get_joy_vibration_duration);
ObjectTypeDB::bind_method(_MD("start_joy_vibration", "device", "weak_magnitude", "strong_magnitude", "duration"), &Input::start_joy_vibration, DEFVAL(0));