From f2ba51f1be724df2d0d6dbc938b733a46ee1b245 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 28 Mar 2016 10:16:03 -0300 Subject: [PATCH] Fix double-click in Allegro back-end when she_mouse_callback() is used --- src/she/alleg4/mouse_poller.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/she/alleg4/mouse_poller.cpp b/src/she/alleg4/mouse_poller.cpp index 35ff742d4..6e55ab9f9 100644 --- a/src/she/alleg4/mouse_poller.cpp +++ b/src/she/alleg4/mouse_poller.cpp @@ -211,6 +211,9 @@ void she_mouse_callback(int flags) if (flags & MOUSE_FLAG_MOVE) { ev.setType(Event::MouseMove); queue_event(ev); + + // Reset double click status + double_click_level = DOUBLE_CLICK_NONE; } // buttons