Added a Visual Studio project for testgesture
authorSam Lantinga <slouken@libsdl.org>
Tue, 30 Nov 2010 12:38:46 -0800
changeset 4918f5f70fed2c4c
parent 4917 7dafe21ca5d4
child 4919 716b2cbf4c9e
Added a Visual Studio project for testgesture
VisualC/SDL_VS2008.sln
VisualC/tests/testgesture/testgesture_VS2005.vcproj
VisualC/tests/testgesture/testgesture_VS2008.vcproj
VisualC/tests/testgesture/testgesture_VS2010.vcxproj
test/testgesture.c
     1.1 --- a/VisualC/SDL_VS2008.sln	Tue Nov 30 12:04:01 2010 -0800
     1.2 +++ b/VisualC/SDL_VS2008.sln	Tue Nov 30 12:38:46 2010 -0800
     1.3 @@ -138,7 +138,26 @@
     1.4  		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
     1.5  	EndProjectSection
     1.6  EndProject
     1.7 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgesture", "tests\testgesture\testgesture_VS2008.vcproj", "{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}"
     1.8 +	ProjectSection(ProjectDependencies) = postProject
     1.9 +		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    1.10 +		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    1.11 +	EndProjectSection
    1.12 +EndProject
    1.13  Global
    1.14 +	GlobalSection(SourceCodeControl) = preSolution
    1.15 +		SccNumberOfProjects = 2
    1.16 +		SccProjectUniqueName0 = SDL\\SDL_VS2008.vcproj
    1.17 +		SccProjectName0 = Perforce\u0020Project
    1.18 +		SccLocalPath0 = ..
    1.19 +		SccProvider0 = MSSCCI:Perforce\u0020SCM
    1.20 +		SccProjectFilePathRelativizedFromConnection0 = VisualC\\SDL\\
    1.21 +		SccProjectUniqueName1 = SDLmain\\SDLmain_VS2008.vcproj
    1.22 +		SccProjectName1 = Perforce\u0020Project
    1.23 +		SccLocalPath1 = ..
    1.24 +		SccProvider1 = MSSCCI:Perforce\u0020SCM
    1.25 +		SccProjectFilePathRelativizedFromConnection1 = VisualC\\SDLmain\\
    1.26 +	EndGlobalSection
    1.27  	GlobalSection(SolutionConfigurationPlatforms) = preSolution
    1.28  		Debug|Win32 = Debug|Win32
    1.29  		Debug|x64 = Debug|x64
    1.30 @@ -370,6 +389,15 @@
    1.31  		{31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Release|Win32.ActiveCfg = Release|Win32
    1.32  		{31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Release|Win32.Build.0 = Release|Win32
    1.33  		{31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Release|x64.ActiveCfg = Release|Win32
    1.34 +		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Debug|Win32.ActiveCfg = Debug|Win32
    1.35 +		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Debug|Win32.Build.0 = Debug|Win32
    1.36 +		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Debug|x64.ActiveCfg = Debug|Win32
    1.37 +		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Release_NoSTDIO|Win32.ActiveCfg = Release|Win32
    1.38 +		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Release_NoSTDIO|Win32.Build.0 = Release|Win32
    1.39 +		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Release_NoSTDIO|x64.ActiveCfg = Release|Win32
    1.40 +		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Release|Win32.ActiveCfg = Release|Win32
    1.41 +		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Release|Win32.Build.0 = Release|Win32
    1.42 +		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Release|x64.ActiveCfg = Release|Win32
    1.43  	EndGlobalSection
    1.44  	GlobalSection(SolutionProperties) = preSolution
    1.45  		HideSolutionNode = FALSE
    1.46 @@ -397,5 +425,6 @@
    1.47  		{0FFD1A21-11DB-492C-A989-E4F195B0C441} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    1.48  		{6AF0724B-BAC1-4C9D-AFBF-F63B4A2FB8FB} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    1.49  		{31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    1.50 +		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    1.51  	EndGlobalSection
    1.52  EndGlobal
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/VisualC/tests/testgesture/testgesture_VS2005.vcproj	Tue Nov 30 12:38:46 2010 -0800
     2.3 @@ -0,0 +1,226 @@
     2.4 +<?xml version="1.0" encoding="Windows-1252"?>
     2.5 +<VisualStudioProject
     2.6 +	ProjectType="Visual C++"
     2.7 +	Version="8.00"
     2.8 +	Name="testgesture"
     2.9 +	ProjectGUID="{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}"
    2.10 +	RootNamespace="testgesture"
    2.11 +	>
    2.12 +	<Platforms>
    2.13 +		<Platform
    2.14 +			Name="Win32"
    2.15 +		/>
    2.16 +	</Platforms>
    2.17 +	<ToolFiles>
    2.18 +	</ToolFiles>
    2.19 +	<Configurations>
    2.20 +		<Configuration
    2.21 +			Name="Debug|Win32"
    2.22 +			OutputDirectory=".\Debug"
    2.23 +			IntermediateDirectory=".\Debug"
    2.24 +			ConfigurationType="1"
    2.25 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
    2.26 +			UseOfMFC="0"
    2.27 +			ATLMinimizesCRunTimeLibraryUsage="false"
    2.28 +			>
    2.29 +			<Tool
    2.30 +				Name="VCPreBuildEventTool"
    2.31 +			/>
    2.32 +			<Tool
    2.33 +				Name="VCCustomBuildTool"
    2.34 +			/>
    2.35 +			<Tool
    2.36 +				Name="VCXMLDataGeneratorTool"
    2.37 +			/>
    2.38 +			<Tool
    2.39 +				Name="VCWebServiceProxyGeneratorTool"
    2.40 +			/>
    2.41 +			<Tool
    2.42 +				Name="VCMIDLTool"
    2.43 +				PreprocessorDefinitions="_DEBUG"
    2.44 +				MkTypLibCompatible="true"
    2.45 +				SuppressStartupBanner="true"
    2.46 +				TargetEnvironment="1"
    2.47 +				TypeLibraryName=".\Debug/testgesture.tlb"
    2.48 +			/>
    2.49 +			<Tool
    2.50 +				Name="VCCLCompilerTool"
    2.51 +				Optimization="0"
    2.52 +				AdditionalIncludeDirectories="..\..\..\include"
    2.53 +				PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
    2.54 +				RuntimeLibrary="2"
    2.55 +				UsePrecompiledHeader="0"
    2.56 +				PrecompiledHeaderFile=".\Debug/testgesture.pch"
    2.57 +				AssemblerListingLocation=".\Debug/"
    2.58 +				ObjectFile=".\Debug/"
    2.59 +				ProgramDataBaseFileName=".\Debug/"
    2.60 +				WarningLevel="3"
    2.61 +				SuppressStartupBanner="true"
    2.62 +				DebugInformationFormat="4"
    2.63 +				CompileAs="0"
    2.64 +			/>
    2.65 +			<Tool
    2.66 +				Name="VCManagedResourceCompilerTool"
    2.67 +			/>
    2.68 +			<Tool
    2.69 +				Name="VCResourceCompilerTool"
    2.70 +				PreprocessorDefinitions="_DEBUG"
    2.71 +				Culture="1033"
    2.72 +			/>
    2.73 +			<Tool
    2.74 +				Name="VCPreLinkEventTool"
    2.75 +			/>
    2.76 +			<Tool
    2.77 +				Name="VCLinkerTool"
    2.78 +				AdditionalOptions="/MACHINE:I386"
    2.79 +				OutputFile=".\Debug/testgesture.exe"
    2.80 +				LinkIncremental="2"
    2.81 +				SuppressStartupBanner="true"
    2.82 +				GenerateDebugInformation="true"
    2.83 +				ProgramDatabaseFile=".\Debug/testgesture.pdb"
    2.84 +				SubSystem="2"
    2.85 +			/>
    2.86 +			<Tool
    2.87 +				Name="VCALinkTool"
    2.88 +			/>
    2.89 +			<Tool
    2.90 +				Name="VCManifestTool"
    2.91 +			/>
    2.92 +			<Tool
    2.93 +				Name="VCXDCMakeTool"
    2.94 +			/>
    2.95 +			<Tool
    2.96 +				Name="VCBscMakeTool"
    2.97 +			/>
    2.98 +			<Tool
    2.99 +				Name="VCFxCopTool"
   2.100 +			/>
   2.101 +			<Tool
   2.102 +				Name="VCAppVerifierTool"
   2.103 +			/>
   2.104 +			<Tool
   2.105 +				Name="VCWebDeploymentTool"
   2.106 +			/>
   2.107 +			<Tool
   2.108 +				Name="VCPostBuildEventTool"
   2.109 +			/>
   2.110 +		</Configuration>
   2.111 +		<Configuration
   2.112 +			Name="Release|Win32"
   2.113 +			OutputDirectory=".\Release"
   2.114 +			IntermediateDirectory=".\Release"
   2.115 +			ConfigurationType="1"
   2.116 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
   2.117 +			UseOfMFC="0"
   2.118 +			ATLMinimizesCRunTimeLibraryUsage="false"
   2.119 +			>
   2.120 +			<Tool
   2.121 +				Name="VCPreBuildEventTool"
   2.122 +			/>
   2.123 +			<Tool
   2.124 +				Name="VCCustomBuildTool"
   2.125 +			/>
   2.126 +			<Tool
   2.127 +				Name="VCXMLDataGeneratorTool"
   2.128 +			/>
   2.129 +			<Tool
   2.130 +				Name="VCWebServiceProxyGeneratorTool"
   2.131 +			/>
   2.132 +			<Tool
   2.133 +				Name="VCMIDLTool"
   2.134 +				PreprocessorDefinitions="NDEBUG"
   2.135 +				MkTypLibCompatible="true"
   2.136 +				SuppressStartupBanner="true"
   2.137 +				TargetEnvironment="1"
   2.138 +				TypeLibraryName=".\Release/testgesture.tlb"
   2.139 +			/>
   2.140 +			<Tool
   2.141 +				Name="VCCLCompilerTool"
   2.142 +				InlineFunctionExpansion="1"
   2.143 +				AdditionalIncludeDirectories="..\..\..\include"
   2.144 +				PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
   2.145 +				StringPooling="true"
   2.146 +				RuntimeLibrary="2"
   2.147 +				EnableFunctionLevelLinking="true"
   2.148 +				UsePrecompiledHeader="0"
   2.149 +				PrecompiledHeaderFile=".\Release/testgesture.pch"
   2.150 +				AssemblerListingLocation=".\Release/"
   2.151 +				ObjectFile=".\Release/"
   2.152 +				ProgramDataBaseFileName=".\Release/"
   2.153 +				WarningLevel="3"
   2.154 +				SuppressStartupBanner="true"
   2.155 +				CompileAs="0"
   2.156 +			/>
   2.157 +			<Tool
   2.158 +				Name="VCManagedResourceCompilerTool"
   2.159 +			/>
   2.160 +			<Tool
   2.161 +				Name="VCResourceCompilerTool"
   2.162 +				PreprocessorDefinitions="NDEBUG"
   2.163 +				Culture="1033"
   2.164 +			/>
   2.165 +			<Tool
   2.166 +				Name="VCPreLinkEventTool"
   2.167 +			/>
   2.168 +			<Tool
   2.169 +				Name="VCLinkerTool"
   2.170 +				AdditionalOptions="/MACHINE:I386"
   2.171 +				OutputFile=".\Release/testgesture.exe"
   2.172 +				LinkIncremental="1"
   2.173 +				SuppressStartupBanner="true"
   2.174 +				ProgramDatabaseFile=".\Release/testgesture.pdb"
   2.175 +				SubSystem="2"
   2.176 +			/>
   2.177 +			<Tool
   2.178 +				Name="VCALinkTool"
   2.179 +			/>
   2.180 +			<Tool
   2.181 +				Name="VCManifestTool"
   2.182 +			/>
   2.183 +			<Tool
   2.184 +				Name="VCXDCMakeTool"
   2.185 +			/>
   2.186 +			<Tool
   2.187 +				Name="VCBscMakeTool"
   2.188 +			/>
   2.189 +			<Tool
   2.190 +				Name="VCFxCopTool"
   2.191 +			/>
   2.192 +			<Tool
   2.193 +				Name="VCAppVerifierTool"
   2.194 +			/>
   2.195 +			<Tool
   2.196 +				Name="VCWebDeploymentTool"
   2.197 +			/>
   2.198 +			<Tool
   2.199 +				Name="VCPostBuildEventTool"
   2.200 +			/>
   2.201 +		</Configuration>
   2.202 +	</Configurations>
   2.203 +	<References>
   2.204 +	</References>
   2.205 +	<Files>
   2.206 +		<File
   2.207 +			RelativePath="..\..\Sdl\Debug\SDL.lib"
   2.208 +			>
   2.209 +		</File>
   2.210 +		<File
   2.211 +			RelativePath="..\..\SDLmain\Debug\SDLmain.lib"
   2.212 +			>
   2.213 +		</File>
   2.214 +		<File
   2.215 +			RelativePath="..\..\..\test\testgesture.c"
   2.216 +			>
   2.217 +			<FileConfiguration
   2.218 +				Name="Debug|Win32"
   2.219 +				>
   2.220 +				<Tool
   2.221 +					Name="VCCLCompilerTool"
   2.222 +					PrecompiledHeaderFile=".\Debug/testgesture.pch"
   2.223 +				/>
   2.224 +			</FileConfiguration>
   2.225 +		</File>
   2.226 +	</Files>
   2.227 +	<Globals>
   2.228 +	</Globals>
   2.229 +</VisualStudioProject>
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/VisualC/tests/testgesture/testgesture_VS2008.vcproj	Tue Nov 30 12:38:46 2010 -0800
     3.3 @@ -0,0 +1,209 @@
     3.4 +<?xml version="1.0" encoding="Windows-1252"?>
     3.5 +<VisualStudioProject
     3.6 +	ProjectType="Visual C++"
     3.7 +	Version="9.00"
     3.8 +	Name="testgesture"
     3.9 +	ProjectGUID="{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}"
    3.10 +	RootNamespace="testgesture"
    3.11 +	TargetFrameworkVersion="131072"
    3.12 +	>
    3.13 +	<Platforms>
    3.14 +		<Platform
    3.15 +			Name="Win32"
    3.16 +		/>
    3.17 +	</Platforms>
    3.18 +	<ToolFiles>
    3.19 +	</ToolFiles>
    3.20 +	<Configurations>
    3.21 +		<Configuration
    3.22 +			Name="Debug|Win32"
    3.23 +			OutputDirectory=".\Debug"
    3.24 +			IntermediateDirectory=".\Debug"
    3.25 +			ConfigurationType="1"
    3.26 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
    3.27 +			UseOfMFC="0"
    3.28 +			ATLMinimizesCRunTimeLibraryUsage="false"
    3.29 +			>
    3.30 +			<Tool
    3.31 +				Name="VCPreBuildEventTool"
    3.32 +			/>
    3.33 +			<Tool
    3.34 +				Name="VCCustomBuildTool"
    3.35 +			/>
    3.36 +			<Tool
    3.37 +				Name="VCXMLDataGeneratorTool"
    3.38 +			/>
    3.39 +			<Tool
    3.40 +				Name="VCWebServiceProxyGeneratorTool"
    3.41 +			/>
    3.42 +			<Tool
    3.43 +				Name="VCMIDLTool"
    3.44 +				PreprocessorDefinitions="_DEBUG"
    3.45 +				MkTypLibCompatible="true"
    3.46 +				SuppressStartupBanner="true"
    3.47 +				TargetEnvironment="1"
    3.48 +				TypeLibraryName=".\Debug/testgesture.tlb"
    3.49 +			/>
    3.50 +			<Tool
    3.51 +				Name="VCCLCompilerTool"
    3.52 +				Optimization="0"
    3.53 +				AdditionalIncludeDirectories="..\..\..\include"
    3.54 +				PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
    3.55 +				RuntimeLibrary="2"
    3.56 +				UsePrecompiledHeader="0"
    3.57 +				PrecompiledHeaderFile=".\Debug/testgesture.pch"
    3.58 +				AssemblerListingLocation=".\Debug/"
    3.59 +				ObjectFile=".\Debug/"
    3.60 +				ProgramDataBaseFileName=".\Debug/"
    3.61 +				WarningLevel="3"
    3.62 +				SuppressStartupBanner="true"
    3.63 +				DebugInformationFormat="4"
    3.64 +				CompileAs="0"
    3.65 +			/>
    3.66 +			<Tool
    3.67 +				Name="VCManagedResourceCompilerTool"
    3.68 +			/>
    3.69 +			<Tool
    3.70 +				Name="VCResourceCompilerTool"
    3.71 +				PreprocessorDefinitions="_DEBUG"
    3.72 +				Culture="1033"
    3.73 +			/>
    3.74 +			<Tool
    3.75 +				Name="VCPreLinkEventTool"
    3.76 +			/>
    3.77 +			<Tool
    3.78 +				Name="VCLinkerTool"
    3.79 +				AdditionalOptions="/MACHINE:I386"
    3.80 +				OutputFile=".\Debug/testgesture.exe"
    3.81 +				LinkIncremental="2"
    3.82 +				SuppressStartupBanner="true"
    3.83 +				GenerateDebugInformation="true"
    3.84 +				ProgramDatabaseFile=".\Debug/testgesture.pdb"
    3.85 +				SubSystem="2"
    3.86 +				RandomizedBaseAddress="1"
    3.87 +				DataExecutionPrevention="0"
    3.88 +			/>
    3.89 +			<Tool
    3.90 +				Name="VCALinkTool"
    3.91 +			/>
    3.92 +			<Tool
    3.93 +				Name="VCManifestTool"
    3.94 +			/>
    3.95 +			<Tool
    3.96 +				Name="VCXDCMakeTool"
    3.97 +			/>
    3.98 +			<Tool
    3.99 +				Name="VCBscMakeTool"
   3.100 +			/>
   3.101 +			<Tool
   3.102 +				Name="VCFxCopTool"
   3.103 +			/>
   3.104 +			<Tool
   3.105 +				Name="VCAppVerifierTool"
   3.106 +			/>
   3.107 +			<Tool
   3.108 +				Name="VCPostBuildEventTool"
   3.109 +			/>
   3.110 +		</Configuration>
   3.111 +		<Configuration
   3.112 +			Name="Release|Win32"
   3.113 +			OutputDirectory=".\Release"
   3.114 +			IntermediateDirectory=".\Release"
   3.115 +			ConfigurationType="1"
   3.116 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
   3.117 +			UseOfMFC="0"
   3.118 +			ATLMinimizesCRunTimeLibraryUsage="false"
   3.119 +			>
   3.120 +			<Tool
   3.121 +				Name="VCPreBuildEventTool"
   3.122 +			/>
   3.123 +			<Tool
   3.124 +				Name="VCCustomBuildTool"
   3.125 +			/>
   3.126 +			<Tool
   3.127 +				Name="VCXMLDataGeneratorTool"
   3.128 +			/>
   3.129 +			<Tool
   3.130 +				Name="VCWebServiceProxyGeneratorTool"
   3.131 +			/>
   3.132 +			<Tool
   3.133 +				Name="VCMIDLTool"
   3.134 +				PreprocessorDefinitions="NDEBUG"
   3.135 +				MkTypLibCompatible="true"
   3.136 +				SuppressStartupBanner="true"
   3.137 +				TargetEnvironment="1"
   3.138 +				TypeLibraryName=".\Release/testgesture.tlb"
   3.139 +			/>
   3.140 +			<Tool
   3.141 +				Name="VCCLCompilerTool"
   3.142 +				InlineFunctionExpansion="1"
   3.143 +				AdditionalIncludeDirectories="..\..\..\include"
   3.144 +				PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
   3.145 +				StringPooling="true"
   3.146 +				RuntimeLibrary="2"
   3.147 +				EnableFunctionLevelLinking="true"
   3.148 +				UsePrecompiledHeader="0"
   3.149 +				PrecompiledHeaderFile=".\Release/testgesture.pch"
   3.150 +				AssemblerListingLocation=".\Release/"
   3.151 +				ObjectFile=".\Release/"
   3.152 +				ProgramDataBaseFileName=".\Release/"
   3.153 +				WarningLevel="3"
   3.154 +				SuppressStartupBanner="true"
   3.155 +				CompileAs="0"
   3.156 +			/>
   3.157 +			<Tool
   3.158 +				Name="VCManagedResourceCompilerTool"
   3.159 +			/>
   3.160 +			<Tool
   3.161 +				Name="VCResourceCompilerTool"
   3.162 +				PreprocessorDefinitions="NDEBUG"
   3.163 +				Culture="1033"
   3.164 +			/>
   3.165 +			<Tool
   3.166 +				Name="VCPreLinkEventTool"
   3.167 +			/>
   3.168 +			<Tool
   3.169 +				Name="VCLinkerTool"
   3.170 +				AdditionalOptions="/MACHINE:I386"
   3.171 +				OutputFile=".\Release/testgesture.exe"
   3.172 +				LinkIncremental="1"
   3.173 +				SuppressStartupBanner="true"
   3.174 +				ProgramDatabaseFile=".\Release/testgesture.pdb"
   3.175 +				SubSystem="2"
   3.176 +				RandomizedBaseAddress="1"
   3.177 +				DataExecutionPrevention="0"
   3.178 +			/>
   3.179 +			<Tool
   3.180 +				Name="VCALinkTool"
   3.181 +			/>
   3.182 +			<Tool
   3.183 +				Name="VCManifestTool"
   3.184 +			/>
   3.185 +			<Tool
   3.186 +				Name="VCXDCMakeTool"
   3.187 +			/>
   3.188 +			<Tool
   3.189 +				Name="VCBscMakeTool"
   3.190 +			/>
   3.191 +			<Tool
   3.192 +				Name="VCFxCopTool"
   3.193 +			/>
   3.194 +			<Tool
   3.195 +				Name="VCAppVerifierTool"
   3.196 +			/>
   3.197 +			<Tool
   3.198 +				Name="VCPostBuildEventTool"
   3.199 +			/>
   3.200 +		</Configuration>
   3.201 +	</Configurations>
   3.202 +	<References>
   3.203 +	</References>
   3.204 +	<Files>
   3.205 +		<File
   3.206 +			RelativePath="..\..\..\test\testgesture.c"
   3.207 +			>
   3.208 +		</File>
   3.209 +	</Files>
   3.210 +	<Globals>
   3.211 +	</Globals>
   3.212 +</VisualStudioProject>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/VisualC/tests/testgesture/testgesture_VS2010.vcxproj	Tue Nov 30 12:38:46 2010 -0800
     4.3 @@ -0,0 +1,134 @@
     4.4 +<?xml version="1.0" encoding="utf-8"?>
     4.5 +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     4.6 +  <ItemGroup Label="ProjectConfigurations">
     4.7 +    <ProjectConfiguration Include="Debug|Win32">
     4.8 +      <Configuration>Debug</Configuration>
     4.9 +      <Platform>Win32</Platform>
    4.10 +    </ProjectConfiguration>
    4.11 +    <ProjectConfiguration Include="Release|Win32">
    4.12 +      <Configuration>Release</Configuration>
    4.13 +      <Platform>Win32</Platform>
    4.14 +    </ProjectConfiguration>
    4.15 +  </ItemGroup>
    4.16 +  <PropertyGroup Label="Globals">
    4.17 +    <ProjectName>testgesture</ProjectName>
    4.18 +    <ProjectGuid>{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}</ProjectGuid>
    4.19 +    <RootNamespace>testgesture</RootNamespace>
    4.20 +  </PropertyGroup>
    4.21 +  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
    4.22 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
    4.23 +    <ConfigurationType>Application</ConfigurationType>
    4.24 +    <UseOfMfc>false</UseOfMfc>
    4.25 +  </PropertyGroup>
    4.26 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
    4.27 +    <ConfigurationType>Application</ConfigurationType>
    4.28 +    <UseOfMfc>false</UseOfMfc>
    4.29 +  </PropertyGroup>
    4.30 +  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
    4.31 +  <ImportGroup Label="ExtensionSettings">
    4.32 +  </ImportGroup>
    4.33 +  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
    4.34 +    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
    4.35 +    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
    4.36 +  </ImportGroup>
    4.37 +  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
    4.38 +    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
    4.39 +    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
    4.40 +  </ImportGroup>
    4.41 +  <PropertyGroup Label="UserMacros" />
    4.42 +  <PropertyGroup>
    4.43 +    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
    4.44 +    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</OutDir>
    4.45 +    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</IntDir>
    4.46 +    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
    4.47 +    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\Release\</OutDir>
    4.48 +    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\Release\</IntDir>
    4.49 +    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
    4.50 +  </PropertyGroup>
    4.51 +  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    4.52 +    <Midl>
    4.53 +      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    4.54 +      <MkTypLibCompatible>true</MkTypLibCompatible>
    4.55 +      <SuppressStartupBanner>true</SuppressStartupBanner>
    4.56 +      <TargetEnvironment>Win32</TargetEnvironment>
    4.57 +      <TypeLibraryName>.\Debug/testgesture.tlb</TypeLibraryName>
    4.58 +    </Midl>
    4.59 +    <ClCompile>
    4.60 +      <Optimization>Disabled</Optimization>
    4.61 +      <AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    4.62 +      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    4.63 +      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
    4.64 +      <PrecompiledHeader>
    4.65 +      </PrecompiledHeader>
    4.66 +      <PrecompiledHeaderOutputFile>.\Debug/testgesture.pch</PrecompiledHeaderOutputFile>
    4.67 +      <AssemblerListingLocation>.\Debug/</AssemblerListingLocation>
    4.68 +      <ObjectFileName>.\Debug/</ObjectFileName>
    4.69 +      <ProgramDataBaseFileName>.\Debug/</ProgramDataBaseFileName>
    4.70 +      <WarningLevel>Level3</WarningLevel>
    4.71 +      <SuppressStartupBanner>true</SuppressStartupBanner>
    4.72 +      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
    4.73 +      <CompileAs>Default</CompileAs>
    4.74 +    </ClCompile>
    4.75 +    <ResourceCompile>
    4.76 +      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    4.77 +      <Culture>0x0409</Culture>
    4.78 +    </ResourceCompile>
    4.79 +    <Link>
    4.80 +      <AdditionalOptions>/MACHINE:I386 %(AdditionalOptions)</AdditionalOptions>
    4.81 +      <OutputFile>.\Debug/testgesture.exe</OutputFile>
    4.82 +      <SuppressStartupBanner>true</SuppressStartupBanner>
    4.83 +      <GenerateDebugInformation>true</GenerateDebugInformation>
    4.84 +      <ProgramDatabaseFile>.\Debug/testgesture.pdb</ProgramDatabaseFile>
    4.85 +      <SubSystem>Windows</SubSystem>
    4.86 +    </Link>
    4.87 +  </ItemDefinitionGroup>
    4.88 +  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    4.89 +    <Midl>
    4.90 +      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    4.91 +      <MkTypLibCompatible>true</MkTypLibCompatible>
    4.92 +      <SuppressStartupBanner>true</SuppressStartupBanner>
    4.93 +      <TargetEnvironment>Win32</TargetEnvironment>
    4.94 +      <TypeLibraryName>.\Release/testgesture.tlb</TypeLibraryName>
    4.95 +    </Midl>
    4.96 +    <ClCompile>
    4.97 +      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
    4.98 +      <AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    4.99 +      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   4.100 +      <StringPooling>true</StringPooling>
   4.101 +      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
   4.102 +      <FunctionLevelLinking>true</FunctionLevelLinking>
   4.103 +      <PrecompiledHeader>
   4.104 +      </PrecompiledHeader>
   4.105 +      <PrecompiledHeaderOutputFile>.\Release/testgesture.pch</PrecompiledHeaderOutputFile>
   4.106 +      <AssemblerListingLocation>.\Release/</AssemblerListingLocation>
   4.107 +      <ObjectFileName>.\Release/</ObjectFileName>
   4.108 +      <ProgramDataBaseFileName>.\Release/</ProgramDataBaseFileName>
   4.109 +      <WarningLevel>Level3</WarningLevel>
   4.110 +      <SuppressStartupBanner>true</SuppressStartupBanner>
   4.111 +      <CompileAs>Default</CompileAs>
   4.112 +    </ClCompile>
   4.113 +    <ResourceCompile>
   4.114 +      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   4.115 +      <Culture>0x0409</Culture>
   4.116 +    </ResourceCompile>
   4.117 +    <Link>
   4.118 +      <AdditionalOptions>/MACHINE:I386 %(AdditionalOptions)</AdditionalOptions>
   4.119 +      <OutputFile>.\Release/testgesture.exe</OutputFile>
   4.120 +      <SuppressStartupBanner>true</SuppressStartupBanner>
   4.121 +      <ProgramDatabaseFile>.\Release/testgesture.pdb</ProgramDatabaseFile>
   4.122 +      <SubSystem>Windows</SubSystem>
   4.123 +    </Link>
   4.124 +  </ItemDefinitionGroup>
   4.125 +  <ItemGroup>
   4.126 +    <Library Include="..\..\Sdl\Debug\SDL.lib" />
   4.127 +    <Library Include="..\..\SDLmain\Debug\SDLmain.lib" />
   4.128 +  </ItemGroup>
   4.129 +  <ItemGroup>
   4.130 +    <ClCompile Include="..\..\..\test\testgesture.c">
   4.131 +      <PrecompiledHeaderOutputFile Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug/testgesture.pch</PrecompiledHeaderOutputFile>
   4.132 +    </ClCompile>
   4.133 +  </ItemGroup>
   4.134 +  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   4.135 +  <ImportGroup Label="ExtensionTargets">
   4.136 +  </ImportGroup>
   4.137 +</Project>
     5.1 --- a/test/testgesture.c	Tue Nov 30 12:04:01 2010 -0800
     5.2 +++ b/test/testgesture.c	Tue Nov 30 12:38:46 2010 -0800
     5.3 @@ -62,7 +62,7 @@
     5.4  
     5.5  void handler (int sig)
     5.6  {
     5.7 -  printf ("\exiting...(%d)\n", sig);
     5.8 +  printf ("exiting...(%d)\n", sig);
     5.9    exit (0);
    5.10  }
    5.11  
    5.12 @@ -72,93 +72,96 @@
    5.13    handler (9);
    5.14  }
    5.15  
    5.16 -void setpix(SDL_Surface *screen, int x, int y, unsigned int col)
    5.17 +void setpix(SDL_Surface *screen, float _x, float _y, unsigned int col)
    5.18  {
    5.19    Uint32 *pixmem32;
    5.20    Uint32 colour;
    5.21 +  Uint8 r,g,b;
    5.22 +  int x = (int)_x;
    5.23 +  int y = (int)_y;
    5.24 +  float a;
    5.25    
    5.26 -  if((unsigned)x > screen->w) return;
    5.27 -  if((unsigned)y > screen->h) return;
    5.28 +  if(x > screen->w) return;
    5.29 +  if(y > screen->h) return;
    5.30  
    5.31    pixmem32 = (Uint32*) screen->pixels  + y*screen->pitch/BPP + x;
    5.32    
    5.33 -  Uint8 r,g,b;
    5.34 -  float a;
    5.35 -  
    5.36 -  memcpy(&colour,pixmem32,screen->format->BytesPerPixel);
    5.37 +  SDL_memcpy(&colour,pixmem32,screen->format->BytesPerPixel);
    5.38  
    5.39    SDL_GetRGB(colour,screen->format,&r,&g,&b);
    5.40    //r = 0;g = 0; b = 0;
    5.41 -  a = (col>>24)&0xFF;
    5.42 +  a = (float)((col>>24)&0xFF);
    5.43    if(a == 0) a = 0xFF; //Hack, to make things easier.
    5.44    a /= 0xFF;
    5.45 -  r = r*(1-a) + ((col>>16)&0xFF)*(a);
    5.46 -  g = g*(1-a) + ((col>> 8)&0xFF)*(a);
    5.47 -  b = b*(1-a) + ((col>> 0)&0xFF)*(a);
    5.48 +  r = (Uint8)(r*(1-a) + ((col>>16)&0xFF)*(a));
    5.49 +  g = (Uint8)(g*(1-a) + ((col>> 8)&0xFF)*(a));
    5.50 +  b = (Uint8)(b*(1-a) + ((col>> 0)&0xFF)*(a));
    5.51    colour = SDL_MapRGB( screen->format,r, g, b);
    5.52    
    5.53  
    5.54    *pixmem32 = colour;
    5.55  }
    5.56  
    5.57 -void drawLine(SDL_Surface *screen,int x0,int y0,int x1,int y1,unsigned int col) {
    5.58 +void drawLine(SDL_Surface *screen,float x0,float y0,float x1,float y1,unsigned int col) {
    5.59    float t;
    5.60 -  for(t=0;t<1;t+=1.f/SDL_max(abs(x0-x1),abs(y0-y1)))
    5.61 +  for(t=0;t<1;t+=(float)(1.f/SDL_max(SDL_fabs(x0-x1),SDL_fabs(y0-y1))))
    5.62      setpix(screen,x1+t*(x0-x1),y1+t*(y0-y1),col);
    5.63  }
    5.64  
    5.65 -void drawCircle(SDL_Surface* screen,int x,int y,int r,unsigned int c)
    5.66 +void drawCircle(SDL_Surface* screen,float x,float y,float r,unsigned int c)
    5.67  {
    5.68 -  int tx,ty;
    5.69 +  float tx,ty;
    5.70    float xr;
    5.71 -  for(ty = -abs(r);ty <= abs(r);ty++) {
    5.72 -    xr = sqrt(r*r - ty*ty);
    5.73 +  for(ty = (float)-SDL_fabs(r);ty <= (float)SDL_fabs((int)r);ty++) {
    5.74 +    xr = (float)sqrt(r*r - ty*ty);
    5.75      if(r > 0) { //r > 0 ==> filled circle
    5.76 -      for(tx=-xr+.5;tx<=xr-.5;tx++) {
    5.77 +      for(tx=-xr+.5f;tx<=xr-.5;tx++) {
    5.78  	setpix(screen,x+tx,y+ty,c);
    5.79        }
    5.80      }
    5.81      else {
    5.82 -      setpix(screen,x-xr+.5,y+ty,c);
    5.83 -      setpix(screen,x+xr-.5,y+ty,c);
    5.84 +      setpix(screen,x-xr+.5f,y+ty,c);
    5.85 +      setpix(screen,x+xr-.5f,y+ty,c);
    5.86      }
    5.87    }
    5.88  }
    5.89  
    5.90  void drawKnob(SDL_Surface* screen,Knob k) {
    5.91    drawCircle(screen,k.p.x*screen->w,k.p.y*screen->h,k.r*screen->w,0xFFFFFF);  
    5.92 -  drawCircle(screen,(k.p.x+k.r/2*cos(k.ang))*screen->w,
    5.93 -  	            (k.p.y+k.r/2*sin(k.ang))*screen->h,k.r/4*screen->w,0);
    5.94 +  drawCircle(screen,(k.p.x+k.r/2*cosf(k.ang))*screen->w,
    5.95 +  	            (k.p.y+k.r/2*sinf(k.ang))*screen->h,k.r/4*screen->w,0);
    5.96  }
    5.97  
    5.98  void DrawScreen(SDL_Surface* screen)
    5.99  {
   5.100 -  int x, y;
   5.101 +  int x, y, i;
   5.102    if(SDL_MUSTLOCK(screen))
   5.103      {                                              
   5.104        if(SDL_LockSurface(screen) < 0) return;
   5.105      }
   5.106    for(y = 0;y < screen->h;y++)
   5.107      for(x = 0;x < screen->w;x++)
   5.108 -	setpix(screen,x,y,((x%255)<<16) + ((y%255)<<8) + (x+y)%255);
   5.109 +	setpix(screen,(float)x,(float)y,((x%255)<<16) + ((y%255)<<8) + (x+y)%255);
   5.110  
   5.111 -  int i;
   5.112    //draw Touch History
   5.113    for(i = SDL_max(0,eventWrite - EVENT_BUF_SIZE);i < eventWrite;i++) {
   5.114      SDL_Event event = events[i&(EVENT_BUF_SIZE-1)];
   5.115      int age = eventWrite - i - 1;
   5.116 +	float x, y;
   5.117 +	unsigned int c, col;
   5.118 +
   5.119      if(event.type == SDL_FINGERMOTION || 
   5.120         event.type == SDL_FINGERDOWN ||
   5.121         event.type == SDL_FINGERUP) {
   5.122        SDL_Touch* inTouch = SDL_GetTouch(event.tfinger.touchId);
   5.123        if(inTouch == NULL) continue;
   5.124  
   5.125 -      float x = ((float)event.tfinger.x)/inTouch->xres;
   5.126 -      float y = ((float)event.tfinger.y)/inTouch->yres;      
   5.127 +      x = ((float)event.tfinger.x)/inTouch->xres;
   5.128 +      y = ((float)event.tfinger.y)/inTouch->yres;      
   5.129        
   5.130        //draw the touch:      
   5.131 -      unsigned int c = colors[event.tfinger.touchId%7]; 
   5.132 -      unsigned int col = 
   5.133 +      c = colors[event.tfinger.touchId%7]; 
   5.134 +      col = 
   5.135  	((unsigned int)(c*(.1+.85))) |
   5.136  	((unsigned int)((0xFF*(1-((float)age)/EVENT_BUF_SIZE))) & 0xFF)<<24;
   5.137  
   5.138 @@ -186,15 +189,13 @@
   5.139  {  
   5.140    SDL_Surface *screen;
   5.141    SDL_Event event;
   5.142 +  SDL_bool quitting = SDL_FALSE;
   5.143 +  SDL_RWops *src;
   5.144  
   5.145    //gesture variables
   5.146 -  knob.r = .1;
   5.147 +  knob.r = .1f;
   5.148    knob.ang = 0;
   5.149  
   5.150 -  
   5.151 -  SDL_bool quitting = SDL_FALSE;
   5.152 -  SDL_RWops *src;
   5.153 -
   5.154    if (SDL_Init(SDL_INIT_VIDEO) < 0 ) return 1;
   5.155    
   5.156    if (!(screen = initScreen(WIDTH,HEIGHT)))
   5.157 @@ -244,14 +245,15 @@
   5.158  		return 1;
   5.159  	      }
   5.160  	    break;
   5.161 -	  case SDL_FINGERMOTION:    
   5.162 -	    ;
   5.163 +	  case SDL_FINGERMOTION:
   5.164  #if VERBOSE
   5.165  	    printf("Finger: %i,x: %i, y: %i\n",event.tfinger.fingerId,
   5.166  	    	   event.tfinger.x,event.tfinger.y);
   5.167  #endif
   5.168 -	    SDL_Touch* inTouch = SDL_GetTouch(event.tfinger.touchId);
   5.169 -	    SDL_Finger* inFinger = SDL_GetFinger(inTouch,event.tfinger.fingerId);
   5.170 +		{
   5.171 +			SDL_Touch* inTouch = SDL_GetTouch(event.tfinger.touchId);
   5.172 +			SDL_Finger* inFinger = SDL_GetFinger(inTouch,event.tfinger.fingerId);
   5.173 +		}
   5.174  	    break;	    
   5.175  	  case SDL_FINGERDOWN:
   5.176  #if VERBOSE