summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/input
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-10-30 08:17:23 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-10-30 08:17:23 -0400
commit867d1a6b9e0c7649f79352fb845379d34c273f3d (patch)
treebe98dffe0815940376c9d28bd8a6a299718bb89f /src/osd/modules/input
parent7ad208700dc9e138c31b5e5ab321ec512abe6899 (diff)
Make SDL input less eager to generate double-click events when mouse doesn't move between clicks
Diffstat (limited to 'src/osd/modules/input')
-rw-r--r--src/osd/modules/input/input_sdl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/input/input_sdl.cpp b/src/osd/modules/input/input_sdl.cpp
index 93e14313de8..bc2f9d705d3 100644
--- a/src/osd/modules/input/input_sdl.cpp
+++ b/src/osd/modules/input/input_sdl.cpp
@@ -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))
{