Skip to content

Commit

Permalink
Fix double-click in Allegro back-end when she_mouse_callback() is used
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Mar 28, 2016
1 parent b62c1e1 commit f2ba51f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/she/alleg4/mouse_poller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2ba51f

Please sign in to comment.