summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2018-09-14 19:26:26 -0700
committerSam Lantinga <slouken@libsdl.org>2018-09-14 19:26:26 -0700
commit75f396a1076d21141f928054a7c245ee3a85944c (patch)
tree236a8d6607333c5bda0a7b1ee06e9e1a35b0df15 /include
parent393f3ab5c40c50d8fb19de5b1b7a6e4ec3ca1f80 (diff)
Added hints SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS to allow tuning double-click sensitivity.
Also increased the default double-click radius to 32 pixels to be more forgiving for touch interfaces
Diffstat (limited to 'include')
-rw-r--r--include/SDL_hints.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/SDL_hints.h b/include/SDL_hints.h
index 07a9113389..3f6653bb98 100644
--- a/include/SDL_hints.h
+++ b/include/SDL_hints.h
@@ -263,6 +263,16 @@ extern "C" {
#define SDL_HINT_GRAB_KEYBOARD "SDL_GRAB_KEYBOARD"
/**
+ * \brief A variable setting the double click time, in milliseconds.
+ */
+#define SDL_HINT_MOUSE_DOUBLE_CLICK_TIME "SDL_MOUSE_DOUBLE_CLICK_TIME"
+
+/**
+ * \brief A variable setting the double click radius, in pixels.
+ */
+#define SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS "SDL_MOUSE_DOUBLE_CLICK_RADIUS"
+
+/**
* \brief A variable setting the speed scale for mouse motion, in floating point, when the mouse is not in relative mode
*/
#define SDL_HINT_MOUSE_NORMAL_SPEED_SCALE "SDL_MOUSE_NORMAL_SPEED_SCALE"