README-cmake.txt
author Sam Lantinga <slouken@libsdl.org>
Thu, 17 Apr 2014 21:00:25 -0700
changeset 8713 e3a80970cf0b
parent 7222 2435b221d77d
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.
     1 ================================================================================
     2 CMake build system for SDL (www.cmake.org)
     3 ================================================================================
     4 
     5 SDL's build system was traditionally based on autotools. Over time, this
     6 approach has suffered from several issues across the different supported 
     7 platforms.
     8 To solve these problems, a new build system based on CMake is under development.
     9 It works in parallel to the legacy system, so users can experiment with it
    10 without complication.
    11 While still experimental, the build system should be usable on the following
    12 platforms:
    13     
    14     * FreeBSD
    15     * Linux
    16     * VS.NET 2010
    17     * MinGW and Msys
    18     * OS X with support for XCode
    19     
    20 ================================================================================
    21 Usage
    22 ================================================================================
    23 
    24 Assuming the source for SDL is located at ~/sdl
    25 
    26 cd ~
    27 mkdir build
    28 cd build
    29 cmake ../sdl
    30 
    31 This will build the static and dynamic versions of SDL in the ~/build directory.