Added gyroscope support to Godot and Android
This commit is contained in:
parent
4c4ab140b4
commit
370ae3512d
12 changed files with 73 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue