From cbeb22eb73637f17c735d0b1d7377c036ddb7814 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Sun, 1 Mar 2020 09:52:37 +0300 Subject: [PATCH] Fix InputEventKey::echo type from INT to BOOL (cherry picked from commit 5e3c64828aacc8e166a74e3a8df0cecd408a25ef) --- core/os/input_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/input_event.cpp b/core/os/input_event.cpp index 2e863c9c765..9878dd41c4e 100644 --- a/core/os/input_event.cpp +++ b/core/os/input_event.cpp @@ -348,7 +348,7 @@ void InputEventKey::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::BOOL, "pressed"), "set_pressed", "is_pressed"); ADD_PROPERTY(PropertyInfo(Variant::INT, "scancode"), "set_scancode", "get_scancode"); ADD_PROPERTY(PropertyInfo(Variant::INT, "unicode"), "set_unicode", "get_unicode"); - ADD_PROPERTY(PropertyInfo(Variant::INT, "echo"), "set_echo", "is_echo"); + ADD_PROPERTY(PropertyInfo(Variant::BOOL, "echo"), "set_echo", "is_echo"); } InputEventKey::InputEventKey() {