VisualC-WinRT/SDL2-WinRT.targets
author Sam Lantinga <slouken@libsdl.org>
Tue, 19 Dec 2017 10:57:21 -0800
changeset 11782 98ea6e4c0d68
parent 10911 1863707d9df8
permissions -rw-r--r--
Fixed bug 4004 - iOS: don't hide keyboard on RETURN

Dominik Reichardt

As discussed in 2012 the iOS onscreen keyboard hides when you hit RETURN (see https://discourse.libsdl.org/t/on-screen-keyboard-change/19216).
IMO this is a bad idea to not be able to influence this behavior and just recently this was fixed for Android by adding the hint SDL_HINT_ANDROID_RETURN_HIDES_IME in changeset 11768 0f2fb9ec6ad6.
dludwig@9940
     1
<?xml version="1.0" encoding="utf-8"?>
dludwig@9940
     2
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
dludwig@9940
     3
dludwig@9940
     4
  <PropertyGroup>
dludwig@9940
     5
    <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' == '8.1'">WinRT81</LibSDL2-DeviceType>
dludwig@9940
     6
    <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows Phone' and '$(TargetPlatformVersion)' == '8.0'">WinPhone80</LibSDL2-DeviceType>
dludwig@9940
     7
    <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'WindowsPhoneApp' and '$(TargetPlatformVersion)' == '8.1'">WinPhone81</LibSDL2-DeviceType>
dludwig@9940
     8
    <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'UAP'">UWP</LibSDL2-DeviceType>
dludwig@9940
     9
dludwig@9940
    10
  	<LibSDL2-BinPath>$(MSBuildThisFileDirectory)..\..\bin\$(LibSDL2-DeviceType)\$(Platform)</LibSDL2-BinPath>
dludwig@9940
    11
  </PropertyGroup>
dludwig@9940
    12
dludwig@9940
    13
  <Target Name="LibSDL2-DeviceType-Check" BeforeTargets="ResolveAssemblyReferences">
dludwig@9940
    14
      <Error Condition="'$(LibSDL2-DeviceType)' == ''" Text="Unable to determine which version of Windows is being built-for" />
dludwig@9940
    15
  </Target>
dludwig@9940
    16
dludwig@9940
    17
  <ItemDefinitionGroup>
dludwig@9940
    18
    <Link>
dludwig@9940
    19
      <AdditionalLibraryDirectories>$(LibSDL2-BinPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
dludwig@9940
    20
      <AdditionalDependencies>SDL2.lib;%(AdditionalDependencies)</AdditionalDependencies>
dludwig@9940
    21
    </Link>
dludwig@9940
    22
  </ItemDefinitionGroup>
dludwig@9940
    23
dludwig@9940
    24
  <ItemDefinitionGroup>
dludwig@9940
    25
    <ClCompile>
dludwig@9940
    26
      <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
dludwig@9940
    27
    </ClCompile>
dludwig@9940
    28
  </ItemDefinitionGroup>
dludwig@9940
    29
dludwig@9940
    30
  <ItemGroup Label="LibSDL2">
dludwig@9940
    31
    <PackagingOutputs Include="$(LibSDL2-BinPath)\SDL2.dll">
dludwig@9940
    32
        <OutputGroup>LibSDL2Binaries</OutputGroup>
dludwig@9940
    33
        <ProjectName>$(ProjectName)</ProjectName>
dludwig@9940
    34
        <TargetPath>%(Filename)%(Extension)</TargetPath>
dludwig@9940
    35
    </PackagingOutputs>
dludwig@9940
    36
  </ItemGroup>
dludwig@9940
    37
dludwig@9940
    38
</Project>