aboutsummaryrefslogtreecommitdiff
path: root/core/os/input.cpp
diff options
context:
space:
mode:
authorBastiaanOlij2016-11-23 23:32:44 +1100
committerBastiaanOlij2017-01-12 16:37:27 +1100
commit5e4dcb3b7f93cfe19a5c12700df5a7c82045f37c (patch)
treeef8522125e50a60f467750daa6243ad3decaea24 /core/os/input.cpp
parentefa9ded5f9d0f8176dcdd17c09de6fa9df926f45 (diff)
downloadgodot-5e4dcb3b7f93cfe19a5c12700df5a7c82045f37c.tar.gz
godot-5e4dcb3b7f93cfe19a5c12700df5a7c82045f37c.tar.zst
godot-5e4dcb3b7f93cfe19a5c12700df5a7c82045f37c.zip
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 d2bd433ed..2ae5834bd 100644
--- a/core/os/input.cpp
+++ b/core/os/input.cpp
@@ -70,6 +70,7 @@ void Input::_bind_methods() {
ClassDB::bind_method(_MD("get_joy_axis_index_from_string", "axis"), &Input::get_joy_axis_index_from_string);
ClassDB::bind_method(_MD("start_joy_vibration", "device", "weak_magnitude", "strong_magnitude", "duration"), &Input::start_joy_vibration, DEFVAL(0));
ClassDB::bind_method(_MD("stop_joy_vibration", "device"), &Input::stop_joy_vibration);
+ ClassDB::bind_method(_MD("get_gravity"),&Input::get_gravity);
ClassDB::bind_method(_MD("get_accelerometer"),&Input::get_accelerometer);
ClassDB::bind_method(_MD("get_magnetometer"),&Input::get_magnetometer);
ClassDB::bind_method(_MD("get_gyroscope"),&Input::get_gyroscope);