README-SDL.txt
author Sam Lantinga <slouken@libsdl.org>
Thu, 17 Apr 2014 21:00:25 -0700
changeset 8713 e3a80970cf0b
parent 7222 2435b221d77d
child 9507 b1e690e9c5b3
permissions -rw-r--r--
Fixed bug 2496 - mouse left button double click event issue

cplu

When I double click on a window, the "clicks" field (newly added since 2.0.2) in SDL_MouseButtonEvent is 1 instead of 2.
However, when I "tripple" click, "clicks" field is then 2.
I'v look into the source code in SDL_windowsevents.c and found that when a double click event comes, WIN_WindowProc will get a WM_LBUTTONDBLCLK msg. The message sequence of a double click is:WM_LBUTTONDOWN->WM_LBUTTONUP->WM_LBUTTONDBLCLK->WM_LBUTTONUP.
slouken@7222
     1
slouken@7222
     2
Please distribute this file with the SDL runtime environment:
slouken@7222
     3
slouken@7222
     4
The Simple DirectMedia Layer (SDL for short) is a cross-platform library
slouken@7222
     5
designed to make it easy to write multi-media software, such as games and
slouken@7222
     6
emulators.
slouken@7222
     7
slouken@7222
     8
The Simple DirectMedia Layer library source code is available from:
slouken@7222
     9
http://www.libsdl.org/
slouken@7222
    10
slouken@7222
    11
This library is distributed under the terms of the zlib license:
slouken@7222
    12
http://www.zlib.net/zlib_license.html
slouken@7222
    13