Fixes is_pressed when holding double click.

This commit is contained in:
unknown 2018-07-10 12:28:06 +03:00 committed by Mikko Mustonen
parent 6c569c90b6
commit 7d11f01636

View File

@ -276,7 +276,7 @@ void InputDefault::_parse_input_event_impl(const Ref<InputEvent> &p_event, bool
Ref<InputEventMouseButton> mb = p_event;
if (mb.is_valid() && !mb->is_doubleclick()) {
if (mb.is_valid()) {
if (mb->is_pressed()) {
mouse_button_mask |= (1 << (mb->get_button_index() - 1));