Make SDL input less eager to generate double-click events when mouse doesn't move between clicks

This commit is contained in:
AJR 2017-10-30 08:17:23 -04:00
parent 7ad208700d
commit 867d1a6b9e

View File

@ -250,7 +250,7 @@ public:
{
machine().ui_input().push_mouse_down_event(window->target(), cx, cy);
if (click - last_click < double_click_speed
if (click < last_click + double_click_speed
&& (cx >= last_x - 4 && cx <= last_x + 4)
&& (cy >= last_y - 4 && cy <= last_y + 4))
{