Merge pull request #58537 from winterpixelgames/feature/virtual-keyboard-types-3.x

This commit is contained in:
Rémi Verschelde 2022-08-05 19:37:13 +02:00 committed by GitHub
commit 26762a71b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 291 additions and 41 deletions

View file

@ -801,8 +801,8 @@ bool OS_JavaScript::has_virtual_keyboard() const {
return godot_js_display_vk_available() != 0;
}
void OS_JavaScript::show_virtual_keyboard(const String &p_existing_text, const Rect2 &p_screen_rect, bool p_multiline, int p_max_input_length, int p_cursor_start, int p_cursor_end) {
godot_js_display_vk_show(p_existing_text.utf8().get_data(), p_multiline, p_cursor_start, p_cursor_end);
void OS_JavaScript::show_virtual_keyboard(const String &p_existing_text, const Rect2 &p_screen_rect, VirtualKeyboardType p_type, int p_max_input_length, int p_cursor_start, int p_cursor_end) {
godot_js_display_vk_show(p_existing_text.utf8().get_data(), p_type, p_cursor_start, p_cursor_end);
}
void OS_JavaScript::hide_virtual_keyboard() {