Skip to content

Commit

Permalink
Merge pull request #36696 from Chaosus/fix_echo
Browse files Browse the repository at this point in the history
Fix InputEventKey::echo property type from INT to BOOL
  • Loading branch information
akien-mga authored Mar 1, 2020
2 parents f05bbe6 + 5e3c648 commit 323ef1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/os/input_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 323ef1a

Please sign in to comment.