Description
Describe the project you are working on:
A simple Android game which uses vibration.
Describe the problem or limitation you are having in your project:
Vibration is not available on all devices (e.g. Kindle Fire).
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Either there would be a function to check if the device can actually vibrate (something like OS.has_feature("vibrate")) or the Input.vibrate_handheld should return an error (currently void).
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
Variant 1:
if OS.has_feature("vibrate"):
Input.vibrate_handheld()
Variant 2:
if ERR == Input.vibrate_handheld():
print("Vibration failed")
If this enhancement will not be used often, can it be worked around with a few lines of script?:
Unless I missed something, this probably has to be changed in Godot_Java?
Is there a reason why this should be core and not an add-on in the asset library?:
Same reason as above.