Support vibration for Android and iOS
This commit is contained in:
parent
86371b7298
commit
4061e5bb75
15 changed files with 68 additions and 0 deletions
|
|
@ -700,6 +700,10 @@ String OS_Android::get_joy_guid(int p_device) const {
|
|||
return input->get_joy_guid_remapped(p_device);
|
||||
}
|
||||
|
||||
void OS_Android::vibrate_handheld(int p_duration_ms) {
|
||||
godot_java->vibrate(p_duration_ms);
|
||||
}
|
||||
|
||||
bool OS_Android::_check_internal_feature_support(const String &p_feature) {
|
||||
if (p_feature == "mobile") {
|
||||
//TODO support etc2 only if GLES3 driver is selected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue