Fixing build configuration to use x86.
authorStephaneLenclud
Sun, 22 Mar 2015 21:59:08 +0100
changeset 87a6684684a9c3
parent 86 96d1dcf8ca70
child 89 f8cfba91e6cd
Fixing build configuration to use x86.
Forcing X2 display of gamepad button usages.
Published version 1.0.4 on NuGet.
Hid/HidEvent.cs
SharpLibHid.csproj
SharpLibHid.nuspec
SharpLibHid.sln
     1.1 --- a/Hid/HidEvent.cs	Sun Mar 22 19:33:36 2015 +0100
     1.2 +++ b/Hid/HidEvent.cs	Sun Mar 22 21:59:08 2015 +0100
     1.3 @@ -529,9 +529,9 @@
     1.4  
     1.5                  UsagePage usagePage = (UsagePage)UsagePage;
     1.6                  string name = Enum.GetName(Utils.UsageType(usagePage), usage);
     1.7 -                if (name == null)
     1.8 +                if (name == null || Device.IsGamePad) //Gamepad buttons do not belong to Usage enumeration, they are just ordinal
     1.9                  {
    1.10 -                    name += usage.ToString("X2");
    1.11 +                    name = usage.ToString("X2");
    1.12                  }
    1.13                  usageText += name;
    1.14              }
     2.1 --- a/SharpLibHid.csproj	Sun Mar 22 19:33:36 2015 +0100
     2.2 +++ b/SharpLibHid.csproj	Sun Mar 22 21:59:08 2015 +0100
     2.3 @@ -32,6 +32,26 @@
     2.4      <WarningLevel>4</WarningLevel>
     2.5      <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     2.6    </PropertyGroup>
     2.7 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     2.8 +    <DebugSymbols>true</DebugSymbols>
     2.9 +    <OutputPath>bin\x86\Debug\</OutputPath>
    2.10 +    <DefineConstants>DEBUG;TRACE</DefineConstants>
    2.11 +    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    2.12 +    <DebugType>full</DebugType>
    2.13 +    <PlatformTarget>x86</PlatformTarget>
    2.14 +    <ErrorReport>prompt</ErrorReport>
    2.15 +    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    2.16 +  </PropertyGroup>
    2.17 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    2.18 +    <OutputPath>bin\x86\Release\</OutputPath>
    2.19 +    <DefineConstants>TRACE</DefineConstants>
    2.20 +    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    2.21 +    <Optimize>true</Optimize>
    2.22 +    <DebugType>pdbonly</DebugType>
    2.23 +    <PlatformTarget>x86</PlatformTarget>
    2.24 +    <ErrorReport>prompt</ErrorReport>
    2.25 +    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    2.26 +  </PropertyGroup>
    2.27    <ItemGroup>
    2.28      <Reference Include="System" />
    2.29      <Reference Include="System.Core" />
     3.1 --- a/SharpLibHid.nuspec	Sun Mar 22 19:33:36 2015 +0100
     3.2 +++ b/SharpLibHid.nuspec	Sun Mar 22 21:59:08 2015 +0100
     3.3 @@ -2,7 +2,7 @@
     3.4  <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
     3.5      <metadata>
     3.6          <id>SharpLibHid</id>
     3.7 -        <version>1.0.2</version>
     3.8 +        <version>1.0.4</version>
     3.9          <title>C# HID Library</title>
    3.10          <authors>Stéphane Lenclud</authors>
    3.11          <owners>Stéphane Lenclud</owners>
    3.12 @@ -10,9 +10,15 @@
    3.13          <projectUrl>http://hg.slions.net/SharpLibHid</projectUrl>
    3.14          <requireLicenseAcceptance>false</requireLicenseAcceptance>
    3.15          <description>C# HID libray designed to handle raw input. Most useful to support IR remote control and gamepad inputs.</description>
    3.16 -        <releaseNotes>v1.0.2
    3.17 -Adding missing public keyword for some of our Usage enumerations.
    3.18 +        <releaseNotes>v1.0.4
    3.19 +Build configuration fix.
    3.20  
    3.21 +v1.0.3
    3.22 +x86 Build.
    3.23 +
    3.24 +v1.0.2
    3.25 +Adding missing public keyword for some of our Usage enumerations.
    3.26 +
    3.27  v1.0.1
    3.28  Adding ThinkPad specific usages.
    3.29  Adding support for optional event repeat.</releaseNotes>
     4.1 --- a/SharpLibHid.sln	Sun Mar 22 19:33:36 2015 +0100
     4.2 +++ b/SharpLibHid.sln	Sun Mar 22 21:59:08 2015 +0100
     4.3 @@ -1,6 +1,8 @@
     4.4  
     4.5  Microsoft Visual Studio Solution File, Format Version 12.00
     4.6  # Visual Studio 2013
     4.7 +VisualStudioVersion = 12.0.31101.0
     4.8 +MinimumVisualStudioVersion = 10.0.40219.1
     4.9  Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E70B5E73-7045-4EA7-968D-06BB68773DAB}"
    4.10  	ProjectSection(SolutionItems) = preProject
    4.11  		Rebracer.xml = Rebracer.xml
    4.12 @@ -24,11 +26,12 @@
    4.13  		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Debug|Any CPU.Build.0 = Debug|Any CPU
    4.14  		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    4.15  		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    4.16 -		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Debug|x86.ActiveCfg = Debug|Any CPU
    4.17 +		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Debug|x86.ActiveCfg = Debug|x86
    4.18 +		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Debug|x86.Build.0 = Debug|x86
    4.19  		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Release|Any CPU.ActiveCfg = Release|Any CPU
    4.20  		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Release|Any CPU.Build.0 = Release|Any CPU
    4.21 -		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
    4.22 -		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
    4.23 +		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Release|Mixed Platforms.ActiveCfg = Release|x86
    4.24 +		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Release|Mixed Platforms.Build.0 = Release|x86
    4.25  		{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}.Release|x86.ActiveCfg = Release|Any CPU
    4.26  		{7435D21C-6A5C-4F57-8868-94A8D911980E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    4.27  		{7435D21C-6A5C-4F57-8868-94A8D911980E}.Debug|Any CPU.Build.0 = Debug|Any CPU