summaryrefslogtreecommitdiffstats
path: root/core/os/input.cpp
diff options
context:
space:
mode:
authorJamil Halabi <jay3dlinux@gmail.com>2016-07-15 15:31:34 +0800
committerJamil Halabi <jay3dlinux@gmail.com>2016-07-16 01:43:32 +0800
commit370ae3512deda40b2659a1192f302298e269305f (patch)
treea1850f46fa1817be65981177326417fbdb33f5b0 /core/os/input.cpp
parent4c4ab140b4569f2700517a13b20127eb7542b3ec (diff)
downloadredot-engine-370ae3512deda40b2659a1192f302298e269305f.tar.gz
Added gyroscope support to Godot and Android
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 efbae57950..531db73838 100644
--- a/core/os/input.cpp
+++ b/core/os/input.cpp
@@ -66,6 +66,7 @@ void Input::_bind_methods() {
ObjectTypeDB::bind_method(_MD("stop_joy_vibration", "device"), &Input::stop_joy_vibration);
ObjectTypeDB::bind_method(_MD("get_accelerometer"),&Input::get_accelerometer);
ObjectTypeDB::bind_method(_MD("get_magnetometer"),&Input::get_magnetometer);
+ ObjectTypeDB::bind_method(_MD("get_gyroscope"),&Input::get_gyroscope);
//ObjectTypeDB::bind_method(_MD("get_mouse_pos"),&Input::get_mouse_pos); - this is not the function you want
ObjectTypeDB::bind_method(_MD("get_mouse_speed"),&Input::get_mouse_speed);
ObjectTypeDB::bind_method(_MD("get_mouse_button_mask"),&Input::get_mouse_button_mask);