diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-18 23:00:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 23:00:56 +0200 |
commit | f4d9749e230130fd9b462c8eb745b6d01a3accf1 (patch) | |
tree | 834495594e6371b3f8cb9d149d502a6d51887cea /core/input | |
parent | 5bb3dbbedd4f32974eef36ffc83bbe29abb65ab1 (diff) | |
parent | 9b38e04fff3e05a57dfa166b089ff68d05c5f2d8 (diff) |
Merge pull request #53741 from DmitriySalnikov/exposed_sensor_setters_master
Diffstat (limited to 'core/input')
-rw-r--r-- | core/input/input.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/input/input.cpp b/core/input/input.cpp index f9a361c761..296aa1f071 100644 --- a/core/input/input.cpp +++ b/core/input/input.cpp @@ -117,6 +117,10 @@ void Input::_bind_methods() { ClassDB::bind_method(D_METHOD("get_accelerometer"), &Input::get_accelerometer); ClassDB::bind_method(D_METHOD("get_magnetometer"), &Input::get_magnetometer); ClassDB::bind_method(D_METHOD("get_gyroscope"), &Input::get_gyroscope); + ClassDB::bind_method(D_METHOD("set_gravity", "value"), &Input::set_gravity); + ClassDB::bind_method(D_METHOD("set_accelerometer", "value"), &Input::set_accelerometer); + ClassDB::bind_method(D_METHOD("set_magnetometer", "value"), &Input::set_magnetometer); + ClassDB::bind_method(D_METHOD("set_gyroscope", "value"), &Input::set_gyroscope); ClassDB::bind_method(D_METHOD("get_last_mouse_speed"), &Input::get_last_mouse_speed); ClassDB::bind_method(D_METHOD("get_mouse_button_mask"), &Input::get_mouse_button_mask); ClassDB::bind_method(D_METHOD("set_mouse_mode", "mode"), &Input::set_mouse_mode); |