2015-06-21 09:33:46 -06:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
|
<ItemGroup Label="ProjectConfigurations">
|
|
|
|
|
<ProjectConfiguration Include="Debug|Win32">
|
|
|
|
|
<Configuration>Debug</Configuration>
|
|
|
|
|
<Platform>Win32</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
<ProjectConfiguration Include="Debug|x64">
|
|
|
|
|
<Configuration>Debug</Configuration>
|
|
|
|
|
<Platform>x64</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
<ProjectConfiguration Include="Release|Win32">
|
|
|
|
|
<Configuration>Release</Configuration>
|
|
|
|
|
<Platform>Win32</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
<ProjectConfiguration Include="Release|x64">
|
|
|
|
|
<Configuration>Release</Configuration>
|
|
|
|
|
<Platform>x64</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<PropertyGroup Label="Globals">
|
|
|
|
|
<ProjectGuid>{9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}</ProjectGuid>
|
|
|
|
|
<RootNamespace>testautomation</RootNamespace>
|
2021-07-24 06:33:54 -06:00
|
|
|
|
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
2015-06-21 09:33:46 -06:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
|
|
|
<ConfigurationType>Application</ConfigurationType>
|
2021-07-24 06:33:54 -06:00
|
|
|
|
<PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
|
2015-06-21 09:33:46 -06:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
|
|
|
|
<ConfigurationType>Application</ConfigurationType>
|
2021-07-24 06:33:54 -06:00
|
|
|
|
<PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
|
2015-06-21 09:33:46 -06:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
|
|
|
<ConfigurationType>Application</ConfigurationType>
|
2021-07-24 06:33:54 -06:00
|
|
|
|
<PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
|
2015-06-21 09:33:46 -06:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
|
|
|
<ConfigurationType>Application</ConfigurationType>
|
2021-07-24 06:33:54 -06:00
|
|
|
|
<PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
|
2015-06-21 09:33:46 -06:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
|
|
|
<ImportGroup Label="ExtensionSettings">
|
|
|
|
|
</ImportGroup>
|
|
|
|
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
|
|
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
|
|
|
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
|
|
|
|
|
</ImportGroup>
|
|
|
|
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
|
|
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
|
|
|
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
|
|
|
|
|
</ImportGroup>
|
|
|
|
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
|
|
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
|
|
|
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
|
|
|
|
|
</ImportGroup>
|
|
|
|
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
|
|
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
|
|
|
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
|
|
|
|
|
</ImportGroup>
|
|
|
|
|
<PropertyGroup Label="UserMacros" />
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
|
|
|
|
|
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
|
|
|
|
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
|
|
|
|
|
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
|
|
|
|
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
|
|
|
|
|
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
|
|
|
|
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
|
|
|
|
|
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
|
|
|
|
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
|
|
|
|
|
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
|
|
|
|
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
|
|
|
|
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
|
|
|
|
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
|
|
|
|
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
|
|
|
|
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
|
|
|
|
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
|
|
|
|
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
|
|
|
|
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
|
|
|
|
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
|
|
|
|
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
|
|
|
|
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
|
|
|
<Midl>
|
|
|
|
|
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<MkTypLibCompatible>true</MkTypLibCompatible>
|
|
|
|
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
|
|
|
|
<TargetEnvironment>Win32</TargetEnvironment>
|
|
|
|
|
<TypeLibraryName>.\Debug/testautomation.tlb</TypeLibraryName>
|
|
|
|
|
</Midl>
|
|
|
|
|
<ClCompile>
|
|
|
|
|
<Optimization>Disabled</Optimization>
|
|
|
|
|
<AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
|
|
|
<AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
|
|
|
|
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
|
|
|
<WarningLevel>Level3</WarningLevel>
|
|
|
|
|
<DebugInformationFormat>OldStyle</DebugInformationFormat>
|
|
|
|
|
</ClCompile>
|
|
|
|
|
<ResourceCompile>
|
|
|
|
|
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<Culture>0x0409</Culture>
|
|
|
|
|
</ResourceCompile>
|
|
|
|
|
<Link>
|
|
|
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
|
|
|
<SubSystem>Windows</SubSystem>
|
|
|
|
|
</Link>
|
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
|
|
|
<Midl>
|
|
|
|
|
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<MkTypLibCompatible>true</MkTypLibCompatible>
|
|
|
|
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
|
|
|
|
<TargetEnvironment>X64</TargetEnvironment>
|
|
|
|
|
<TypeLibraryName>.\Debug/testautomation.tlb</TypeLibraryName>
|
|
|
|
|
</Midl>
|
|
|
|
|
<ClCompile>
|
|
|
|
|
<Optimization>Disabled</Optimization>
|
|
|
|
|
<AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
|
|
|
<AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
|
|
|
|
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
|
|
|
|
<WarningLevel>Level3</WarningLevel>
|
|
|
|
|
<DebugInformationFormat>OldStyle</DebugInformationFormat>
|
|
|
|
|
</ClCompile>
|
|
|
|
|
<ResourceCompile>
|
|
|
|
|
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<Culture>0x0409</Culture>
|
|
|
|
|
</ResourceCompile>
|
|
|
|
|
<Link>
|
|
|
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
|
|
|
<SubSystem>Windows</SubSystem>
|
|
|
|
|
</Link>
|
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
|
|
|
<Midl>
|
|
|
|
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<MkTypLibCompatible>true</MkTypLibCompatible>
|
|
|
|
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
|
|
|
|
<TargetEnvironment>Win32</TargetEnvironment>
|
|
|
|
|
<TypeLibraryName>.\Release/testautomation.tlb</TypeLibraryName>
|
|
|
|
|
</Midl>
|
|
|
|
|
<ClCompile>
|
|
|
|
|
<AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
|
|
|
<AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
|
|
|
|
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
|
|
|
<WarningLevel>Level3</WarningLevel>
|
|
|
|
|
</ClCompile>
|
|
|
|
|
<ResourceCompile>
|
|
|
|
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<Culture>0x0409</Culture>
|
|
|
|
|
</ResourceCompile>
|
|
|
|
|
<Link>
|
|
|
|
|
<SubSystem>Windows</SubSystem>
|
|
|
|
|
</Link>
|
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
|
|
|
<Midl>
|
|
|
|
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<MkTypLibCompatible>true</MkTypLibCompatible>
|
|
|
|
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
|
|
|
|
<TargetEnvironment>X64</TargetEnvironment>
|
|
|
|
|
<TypeLibraryName>.\Release/testautomation.tlb</TypeLibraryName>
|
|
|
|
|
</Midl>
|
|
|
|
|
<ClCompile>
|
|
|
|
|
<AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
|
|
|
<AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
|
|
|
|
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
|
|
|
<WarningLevel>Level3</WarningLevel>
|
|
|
|
|
</ClCompile>
|
|
|
|
|
<ResourceCompile>
|
|
|
|
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<Culture>0x0409</Culture>
|
|
|
|
|
</ResourceCompile>
|
|
|
|
|
<Link>
|
|
|
|
|
<SubSystem>Windows</SubSystem>
|
|
|
|
|
</Link>
|
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ProjectReference Include="..\..\SDL\SDL.vcxproj">
|
|
|
|
|
<Project>{81ce8daf-ebb2-4761-8e45-b71abcca8c68}</Project>
|
|
|
|
|
<Private>false</Private>
|
|
|
|
|
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
|
|
|
|
|
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
|
|
|
|
|
</ProjectReference>
|
2022-11-28 10:54:09 -07:00
|
|
|
|
<ProjectReference Include="..\..\SDL_test\SDL_test.vcxproj">
|
2015-06-21 09:33:46 -06:00
|
|
|
|
<Project>{da956fd3-e143-46f2-9fe5-c77bebc56b1a}</Project>
|
|
|
|
|
<Private>false</Private>
|
|
|
|
|
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
|
|
|
|
|
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
|
|
|
|
|
</ProjectReference>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ClCompile Include="..\..\..\Test\testautomation.c" />
|
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_audio.c" />
|
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_clipboard.c" />
|
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_events.c" />
|
2022-07-01 17:27:51 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_guid.c" />
|
2015-06-21 09:33:46 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_hints.c" />
|
2023-01-26 11:23:57 -07:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_images.c" />
|
2023-03-19 00:13:46 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_intrinsics.c" />
|
2022-07-13 09:57:40 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_joystick.c" />
|
2015-06-21 09:33:46 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_keyboard.c" />
|
2024-01-27 20:11:04 -07:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_log.c" />
|
2015-06-21 09:33:46 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_main.c" />
|
2022-05-04 11:18:13 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_math.c" />
|
2015-06-21 09:33:46 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_mouse.c" />
|
API for pressure-sensitive pens + XInput2/Wayland
This patch adds an API for querying pressure-
sensitive pens, cf. SDL_pen.h:
- Enumerate all pens
- Get pen capabilities, names, GUIDs
- Distinguishes pens and erasers
- Distinguish attached and detached pens
- Pressure and tilt support
- Rotation, distance, throttle wheel support
(throttle wheel untested)
- Pen type and meta-information reporting
(partially tested)
Pen event reporting:
- Three new event structures: PenTip, PenMotion, and
PenButton
- Report location with sub-pixel precision
- Include axis and button status, is-eraser flag
Internal pen tracker, intended to be independent
of platform APIs, cf. SDL_pen_c.h:
- Track known pens
- Handle pen hotplugging
Automatic test:
- testautomation_pen.c
Other features:
- XInput2 implementation, incl. hotplugging
- Wayland implementation, incl. hotplugging
- Backward compatibility: pen events default to
emulating pens with mouse ID SDL_PEN_MOUSEID
- Can be toggled via SDL_HINT_PEN_NOT_MOUSE
- Test/demo program (testpen)
- Wacom pen feature identification by pen ID
Acknowledgements:
- Ping Cheng (Wacom) provided extensive feedback
on Wacom pen features and detection so that
hopefully untested Wacom devices have a
realistic chance of working out of the box.
2023-08-27 00:20:29 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_pen.c">
|
|
|
|
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)\..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
|
|
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)\..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
|
|
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir)\..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
|
|
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)\..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
|
|
|
</ClCompile>
|
2015-06-21 09:33:46 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_pixels.c" />
|
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_platform.c" />
|
2023-10-10 13:38:22 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_properties.c" />
|
2015-06-21 09:33:46 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_rect.c" />
|
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_render.c" />
|
2024-03-14 21:30:59 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_iostream.c" />
|
2015-06-21 09:33:46 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_sdltest.c" />
|
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_stdlib.c" />
|
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_surface.c" />
|
Add time and realtime clock functions
Adds functions to query the system's realtime clock, convert time intervals to/from a calendar date and time in either UTC or the local time, and perform time related calculations.
An SDL_Time type (a time interval represented in nanoseconds), and SDL_DateTime struct (broken down calendar date and time) were added to facilitate this functionality.
Querying the system time results in a value expressed in nanoseconds since the Unix epoch (Jan 1, 1970) in UTC +0000. Conversions to and from the various platform epochs and units are performed when required.
Any direct handling of timezones and DST were intentionally avoided. The offset from UTC is provided when converting from UTC to a local time by calculating the difference between the original UTC and the resulting local time, but no other timezone or DST information is used.
The preferred date formatting and 12/24 hour time for the system locale can be retrieved via global preferences.
Helper functions for obtaining the day of week or day or year for calendar date, and getting the number of days in a month in a given year are provided for convenience. These are simple, but useful for performing various time related calculations.
An automated test for time conversion is included, as is a simple standalone test to display the current system date and time onscreen along with a calendar, the rendering of which demonstrates the use of the utility functions (press up/down to increment or decrement the current month, and keys 1-5 to change the date and time formats).
2024-02-29 11:06:26 -07:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_time.c" />
|
2015-06-21 09:33:46 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_timer.c" />
|
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_video.c" />
|
2023-10-13 10:43:18 -06:00
|
|
|
|
<ClCompile Include="..\..\..\test\testautomation_subsystems.c" />
|
2015-06-21 09:33:46 -06:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ClInclude Include="..\..\..\test\testautomation_suites.h" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
|
|
|
<ImportGroup Label="ExtensionTargets">
|
|
|
|
|
</ImportGroup>
|
2023-11-07 15:38:19 -07:00
|
|
|
|
</Project>
|