VisualC-WinRT/SDL-WinRT_VS2012.sln
author Sam Lantinga <slouken@libsdl.org>
Thu, 17 Apr 2014 21:00:25 -0700
changeset 8713 e3a80970cf0b
parent 8524 30cbb7353dc5
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 Microsoft Visual Studio Solution File, Format Version 12.00
     3 # Visual Studio 2012
     4 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL-WinRT", "SDL\SDL-WinRT_VS2012.vcxproj", "{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}"
     5 EndProject
     6 Global
     7 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
     8 		Debug|ARM = Debug|ARM
     9 		Debug|Win32 = Debug|Win32
    10 		Debug|x64 = Debug|x64
    11 		Release|ARM = Release|ARM
    12 		Release|Win32 = Release|Win32
    13 		Release|x64 = Release|x64
    14 	EndGlobalSection
    15 	GlobalSection(ProjectConfigurationPlatforms) = postSolution
    16 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|ARM.ActiveCfg = Debug|ARM
    17 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|ARM.Build.0 = Debug|ARM
    18 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|Win32.ActiveCfg = Debug|Win32
    19 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|Win32.Build.0 = Debug|Win32
    20 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|x64.ActiveCfg = Debug|x64
    21 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|x64.Build.0 = Debug|x64
    22 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|ARM.ActiveCfg = Release|ARM
    23 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|ARM.Build.0 = Release|ARM
    24 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|Win32.ActiveCfg = Release|Win32
    25 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|Win32.Build.0 = Release|Win32
    26 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|x64.ActiveCfg = Release|x64
    27 		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|x64.Build.0 = Release|x64
    28 	EndGlobalSection
    29 	GlobalSection(SolutionProperties) = preSolution
    30 		HideSolutionNode = FALSE
    31 	EndGlobalSection
    32 EndGlobal