Mercurial > sdl-ios-xcode
view VisualCE/testwin/testwin.vcproj @ 3191:91b335df6fc8
Fixed bug #750
Since many different event structures include windowID it should be placed near
the beginning of the structure (preferably right after type) so it's position
is the same between different events.
This is to avoid code like this:
if (event.type == SDL_WINDOWEVENT)
win = event.window.windowID;
else if ((SDL_EVENTMASK(event.type) & SDL_KEYEVENTMASK) != 0)
win = event.key.windowID;
else if (event.type == SDL_TEXTINPUT)
win = event.text.windowID;
else if (event.type == SDL_MOUSEMOTION)
win = event.motion.windowID;
else if ((SDL_EVENTMASK(event.type) & (SDL_MOUBUTTONDOWNMASK |
SDL_MOUBUTTONUPMASK)) != 0)
win = event.button.windowID;
else if (event.type == SDL_MOUSEWHEEL)
win = event.wheel.windowID;
...
in favor of:
win = event.window.windowID;
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 10 Jun 2009 14:00:21 +0000 |
parents | d63e9f5944ae |
children | c2539ff054c8 |
line wrap: on
line source
<?xml version="1.0" encoding="windows-1251"?> <VisualStudioProject ProjectType="Visual C++" Version="8,00" Name="testwin" ProjectGUID="{DC516978-88CB-4F9A-A39A-C351C258613B}" RootNamespace="testwin" > <Platforms> <Platform Name="Smartphone 2003 (ARMV4)" /> <Platform Name="Pocket PC 2003 (ARMV4)" /> <Platform Name="Windows Mobile 5.0 Pocket PC SDK (ARMV4I)" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Release|Smartphone 2003 (ARMV4)" OutputDirectory="$(PlatformName)\$(ConfigurationName)" IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="1" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="NDEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName="$(PlatformName)\$(ConfigurationName)/testwin.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" ExecutionBucket="7" Optimization="2" InlineFunctionExpansion="1" PreprocessorDefinitions="_WIN32_WCE=$(CEVER);$(CePlatform);ARM;_ARM_;ARMV4;UNDER_CE=$(CEVER);UNICODE;NDEBUG" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" PrecompiledHeaderFile="$(PlatformName)\$(ConfigurationName)/testwin.pch" AssemblerListingLocation="$(PlatformName)\$(ConfigurationName)/" ObjectFile="$(PlatformName)\$(ConfigurationName)/" ProgramDataBaseFileName="$(PlatformName)\$(ConfigurationName)/" WarningLevel="3" SuppressStartupBanner="true" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" AdditionalOptions="/r " PreprocessorDefinitions="UNDER_CE=$(CEVER),_WIN32_WCE=$(CEVER),NDEBUG,UNICODE,_UNICODE,$(CePlatform),ARM,_ARM_,ARMV4" Culture="1033" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalOptions="/ALIGN:4096 /subsystem:$(CESubsystem) /MACHINE:ARM " AdditionalDependencies="commctrl.lib coredll.lib aygshell.lib secchk.lib ccrtrtti.lib" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.exe" LinkIncremental="1" SuppressStartupBanner="true" IgnoreDefaultLibraryNames="$(CENoDefaultLib)" ProgramDatabaseFile="$(PlatformName)\$(ConfigurationName)/testwin.pdb" StackReserveSize="65536" StackCommitSize="4096" EntryPointSymbol="WinMainCRTStartup" BaseAddress="0x00010000" /> <Tool Name="VCALinkTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.bsc" /> <Tool Name="VCCodeSignTool" /> <Tool Name="VCPostBuildEventTool" /> <DeploymentTool ForceDirty="-1" RemoteDirectory="" RegisterOutput="0" AdditionalFiles="" /> <DebuggerTool /> </Configuration> <Configuration Name="Release|Pocket PC 2003 (ARMV4)" OutputDirectory="$(PlatformName)\$(ConfigurationName)" IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="1" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="NDEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName="$(PlatformName)\$(ConfigurationName)/testwin.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" ExecutionBucket="7" Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="_WIN32_WCE=$(CEVER);$(CePlatform);ARM;_ARM_;ARMV4;UNDER_CE=$(CEVER);UNICODE;NDEBUG" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" PrecompiledHeaderFile="$(PlatformName)\$(ConfigurationName)/testwin.pch" AssemblerListingLocation="$(PlatformName)\$(ConfigurationName)/" ObjectFile="$(PlatformName)\$(ConfigurationName)/" ProgramDataBaseFileName="$(PlatformName)\$(ConfigurationName)/" WarningLevel="3" SuppressStartupBanner="true" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" AdditionalOptions="/r " PreprocessorDefinitions="UNDER_CE=$(CEVER),_WIN32_WCE=$(CEVER),NDEBUG,UNICODE,_UNICODE,$(CePlatform),ARM,_ARM_,ARMV4" Culture="1033" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalOptions="/ALIGN:4096 /subsystem:$(CESubsystem) /MACHINE:ARM " AdditionalDependencies="commctrl.lib coredll.lib aygshell.lib secchk.lib ccrtrtti.lib" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.exe" LinkIncremental="1" SuppressStartupBanner="true" IgnoreDefaultLibraryNames="$(CENoDefaultLib)" ProgramDatabaseFile="$(PlatformName)\$(ConfigurationName)/testwin.pdb" StackReserveSize="65536" StackCommitSize="4096" EntryPointSymbol="WinMainCRTStartup" BaseAddress="0x00010000" /> <Tool Name="VCALinkTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.bsc" /> <Tool Name="VCCodeSignTool" /> <Tool Name="VCPostBuildEventTool" /> <DeploymentTool ForceDirty="-1" RemoteDirectory="" RegisterOutput="0" AdditionalFiles="sample.bmp|$(SolutionDir)\..\test|\|0" /> <DebuggerTool /> </Configuration> <Configuration Name="Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)" OutputDirectory="$(PlatformName)\$(ConfigurationName)" IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="1" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="NDEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName="$(PlatformName)\$(ConfigurationName)/testwin.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" ExecutionBucket="7" Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="_WIN32_WCE=$(CEVER);$(CePlatform);ARM;_ARM_;ARMV4;UNDER_CE=$(CEVER);UNICODE;NDEBUG" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" PrecompiledHeaderFile="$(PlatformName)\$(ConfigurationName)/testwin.pch" AssemblerListingLocation="$(PlatformName)\$(ConfigurationName)/" ObjectFile="$(PlatformName)\$(ConfigurationName)/" ProgramDataBaseFileName="$(PlatformName)\$(ConfigurationName)/" WarningLevel="3" SuppressStartupBanner="true" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" AdditionalOptions="/r " PreprocessorDefinitions="UNDER_CE=$(CEVER),_WIN32_WCE=$(CEVER),NDEBUG,UNICODE,_UNICODE,$(CePlatform),ARM,_ARM_,ARMV4" Culture="1033" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalOptions="/ALIGN:4096 /subsystem:$(CESubsystem) " AdditionalDependencies="commctrl.lib coredll.lib aygshell.lib" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.exe" LinkIncremental="1" SuppressStartupBanner="true" IgnoreDefaultLibraryNames="$(CENoDefaultLib)" ProgramDatabaseFile="$(PlatformName)\$(ConfigurationName)/testwin.pdb" StackReserveSize="65536" StackCommitSize="4096" EntryPointSymbol="WinMainCRTStartup" BaseAddress="0x00010000" /> <Tool Name="VCALinkTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.bsc" /> <Tool Name="VCCodeSignTool" /> <Tool Name="VCPostBuildEventTool" /> <DeploymentTool ForceDirty="-1" RemoteDirectory="" RegisterOutput="0" AdditionalFiles="" /> <DebuggerTool /> </Configuration> <Configuration Name="Debug|Smartphone 2003 (ARMV4)" OutputDirectory="$(PlatformName)\$(ConfigurationName)" IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="1" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="_DEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName="$(PlatformName)\$(ConfigurationName)/testwin.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" ExecutionBucket="7" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="DEBUG;ARM;_ARM_;ARMV4;UNDER_CE=$(CEVER);_WIN32_WCE=$(CEVER);$(CePlatform);UNICODE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="$(PlatformName)\$(ConfigurationName)/testwin.pch" AssemblerListingLocation="$(PlatformName)\$(ConfigurationName)/" ObjectFile="$(PlatformName)\$(ConfigurationName)/" ProgramDataBaseFileName="$(PlatformName)\$(ConfigurationName)/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" AdditionalOptions="/r " PreprocessorDefinitions="UNDER_CE=$(CEVER),_WIN32_WCE=$(CEVER),DEBUG,UNICODE,_UNICODE,$(CePlatform),ARM,_ARM_,ARMV4" Culture="1033" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalOptions="/ALIGN:4096 /subsystem:$(CESubsystem) /MACHINE:ARM " AdditionalDependencies="commctrl.lib coredll.lib aygshell.lib secchk.lib ccrtrtti.lib" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.exe" LinkIncremental="2" SuppressStartupBanner="true" IgnoreDefaultLibraryNames="$(CENoDefaultLib)" GenerateDebugInformation="true" ProgramDatabaseFile="$(PlatformName)\$(ConfigurationName)/testwin.pdb" StackReserveSize="65536" StackCommitSize="4096" EntryPointSymbol="WinMainCRTStartup" BaseAddress="0x00010000" /> <Tool Name="VCALinkTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.bsc" /> <Tool Name="VCCodeSignTool" /> <Tool Name="VCPostBuildEventTool" /> <DeploymentTool ForceDirty="-1" RemoteDirectory="" RegisterOutput="0" AdditionalFiles="" /> <DebuggerTool /> </Configuration> <Configuration Name="Debug|Pocket PC 2003 (ARMV4)" OutputDirectory="$(PlatformName)\$(ConfigurationName)" IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="1" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="_DEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName="$(PlatformName)\$(ConfigurationName)/testwin.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" ExecutionBucket="7" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="DEBUG;ARM;_ARM_;ARMV4;UNDER_CE=$(CEVER);_WIN32_WCE=$(CEVER);$(CePlatform);UNICODE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="$(PlatformName)\$(ConfigurationName)/testwin.pch" AssemblerListingLocation="$(PlatformName)\$(ConfigurationName)/" ObjectFile="$(PlatformName)\$(ConfigurationName)/" ProgramDataBaseFileName="$(PlatformName)\$(ConfigurationName)/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" AdditionalOptions="/r " PreprocessorDefinitions="UNDER_CE=$(CEVER),_WIN32_WCE=$(CEVER),DEBUG,UNICODE,_UNICODE,$(CePlatform),ARM,_ARM_,ARMV4" Culture="1033" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalOptions="/ALIGN:4096 /subsystem:$(CESubsystem) /MACHINE:ARM " AdditionalDependencies="commctrl.lib coredll.lib aygshell.lib secchk.lib ccrtrtti.lib" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.exe" LinkIncremental="2" SuppressStartupBanner="true" IgnoreDefaultLibraryNames="$(CENoDefaultLib)" GenerateDebugInformation="true" ProgramDatabaseFile="$(PlatformName)\$(ConfigurationName)/testwin.pdb" StackReserveSize="65536" StackCommitSize="4096" EntryPointSymbol="WinMainCRTStartup" BaseAddress="0x00010000" /> <Tool Name="VCALinkTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.bsc" /> <Tool Name="VCCodeSignTool" /> <Tool Name="VCPostBuildEventTool" /> <DeploymentTool ForceDirty="-1" RemoteDirectory="" RegisterOutput="0" AdditionalFiles="sample.bmp|$(SolutionDir)\..\test|\|0" /> <DebuggerTool /> </Configuration> <Configuration Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)" OutputDirectory="$(PlatformName)\$(ConfigurationName)" IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="1" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="_DEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName="$(PlatformName)\$(ConfigurationName)/testwin.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" ExecutionBucket="7" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="DEBUG;ARM;_ARM_;ARMV4;UNDER_CE=$(CEVER);_WIN32_WCE=$(CEVER);$(CePlatform);UNICODE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="$(PlatformName)\$(ConfigurationName)/testwin.pch" AssemblerListingLocation="$(PlatformName)\$(ConfigurationName)/" ObjectFile="$(PlatformName)\$(ConfigurationName)/" ProgramDataBaseFileName="$(PlatformName)\$(ConfigurationName)/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" AdditionalOptions="/r " PreprocessorDefinitions="UNDER_CE=$(CEVER),_WIN32_WCE=$(CEVER),DEBUG,UNICODE,_UNICODE,$(CePlatform),ARM,_ARM_,ARMV4" Culture="1033" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalOptions="/ALIGN:4096 /subsystem:$(CESubsystem) " AdditionalDependencies="commctrl.lib coredll.lib aygshell.lib" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.exe" LinkIncremental="2" SuppressStartupBanner="true" IgnoreDefaultLibraryNames="$(CENoDefaultLib)" GenerateDebugInformation="true" ProgramDatabaseFile="$(PlatformName)\$(ConfigurationName)/testwin.pdb" StackReserveSize="65536" StackCommitSize="4096" EntryPointSymbol="WinMainCRTStartup" BaseAddress="0x00010000" /> <Tool Name="VCALinkTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile="$(PlatformName)\$(ConfigurationName)/testwin.bsc" /> <Tool Name="VCCodeSignTool" /> <Tool Name="VCPostBuildEventTool" /> <DeploymentTool ForceDirty="-1" RemoteDirectory="" RegisterOutput="0" AdditionalFiles="" /> <DebuggerTool /> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="Source Files" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > <File RelativePath="..\..\test\testwin.c" > <FileConfiguration Name="Release|Smartphone 2003 (ARMV4)" > <Tool Name="VCCLCompilerTool" UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration Name="Release|Pocket PC 2003 (ARMV4)" > <Tool Name="VCCLCompilerTool" UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration Name="Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)" > <Tool Name="VCCLCompilerTool" UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration Name="Debug|Smartphone 2003 (ARMV4)" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration Name="Debug|Pocket PC 2003 (ARMV4)" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" UsePrecompiledHeader="0" /> </FileConfiguration> </File> </Filter> <Filter Name="Header Files" Filter="h;hpp;hxx;hm;inl" > </Filter> <Filter Name="Resource Files" Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" > </Filter> </Files> <Globals> </Globals> </VisualStudioProject>