mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
Make SDL input less eager to generate double-click events when mouse doesn't move between clicks
This commit is contained in:
parent
7ad208700d
commit
867d1a6b9e
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user