Howto check whether virtual keyboard is supported

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By thornySoap

I am checking DisplayServer.virtual_keyboard_get_height() all the time, but on PC it spams my console with “Virtual keyboard not supported by this display server”, so I’d like to have a way to disable the checks if virtual keyboard isn’t supported at all.

:bust_in_silhouette: Reply From: Wakatta
var is_supported = DisplayServer.has_feature(DisplayServer.FEATURE_VIRTUAL_KEYBOARD)