Added gyroscope support to Godot and Android

This commit is contained in:
Jamil Halabi 2016-07-15 15:31:34 +08:00
parent 4c4ab140b4
commit 370ae3512d
12 changed files with 73 additions and 1 deletions

View file

@ -614,6 +614,11 @@ void OS_Android::process_magnetometer(const Vector3& p_magnetometer) {
input->set_magnetometer(p_magnetometer);
}
void OS_Android::process_gyroscope(const Vector3& p_gyroscope) {
input->set_gyroscope(p_gyroscope);
}
bool OS_Android::has_touchscreen_ui_hint() const {
return true;