Publishing on NuGet.
1.1 --- a/MainForm.cs Sun Mar 15 20:44:15 2015 +0100
1.2 +++ b/MainForm.cs Sun Mar 15 21:26:51 2015 +0100
1.3 @@ -69,7 +69,7 @@
1.4 // remote device. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/remote_control.asp
1.5 // for the vendor defined usage page.
1.6
1.7 - RAWINPUTDEVICE[] rid = new RAWINPUTDEVICE[6];
1.8 + RAWINPUTDEVICE[] rid = new RAWINPUTDEVICE[5];
1.9
1.10 int i = 0;
1.11 rid[i].usUsagePage = (ushort)SharpLib.Hid.UsagePage.WindowsMediaCenterRemoteControl;
1.12 @@ -101,11 +101,11 @@
1.13 rid[i].dwFlags = Const.RIDEV_EXINPUTSINK;
1.14 rid[i].hwndTarget = Handle;
1.15
1.16 - i++;
1.17 - rid[i].usUsagePage = (ushort)SharpLib.Hid.UsagePage.GenericDesktopControls;
1.18 - rid[i].usUsage = (ushort)SharpLib.Hid.UsageCollection.GenericDesktop.Keyboard;
1.19 + //i++;
1.20 + //rid[i].usUsagePage = (ushort)SharpLib.Hid.UsagePage.GenericDesktopControls;
1.21 + //rid[i].usUsage = (ushort)SharpLib.Hid.UsageCollection.GenericDesktop.Keyboard;
1.22 //rid[i].dwFlags = Const.RIDEV_EXINPUTSINK;
1.23 - rid[i].hwndTarget = Handle;
1.24 + //rid[i].hwndTarget = Handle;
1.25
1.26 //i++;
1.27 //rid[i].usUsagePage = (ushort)Hid.UsagePage.GenericDesktopControls;
2.1 --- a/SharpLibHid.csproj Sun Mar 15 20:44:15 2015 +0100
2.2 +++ b/SharpLibHid.csproj Sun Mar 15 21:26:51 2015 +0100
2.3 @@ -30,6 +30,7 @@
2.4 <DefineConstants>TRACE</DefineConstants>
2.5 <ErrorReport>prompt</ErrorReport>
2.6 <WarningLevel>4</WarningLevel>
2.7 + <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2.8 </PropertyGroup>
2.9 <ItemGroup>
2.10 <Reference Include="System" />
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/SharpLibHid.nuspec Sun Mar 15 21:26:51 2015 +0100
3.3 @@ -0,0 +1,17 @@
3.4 +<?xml version="1.0" encoding="utf-8"?>
3.5 +<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3.6 + <metadata>
3.7 + <id>SharpLibHid</id>
3.8 + <version>1.0.0</version>
3.9 + <authors>Stéphane Lenclud</authors>
3.10 + <owners>Stéphane Lenclud</owners>
3.11 + <projectUrl>http://hg.slions.net/SharpLibHid</projectUrl>
3.12 + <requireLicenseAcceptance>false</requireLicenseAcceptance>
3.13 + <description>C# HID libray designed to handle raw input. Most useful to support IR remote control and gamepad inputs.</description>
3.14 + <copyright>Stéphane Lenclud</copyright>
3.15 + <tags>HID</tags>
3.16 + </metadata>
3.17 + <files>
3.18 + <file src="bin\Release\SharpLibHid.dll" target="lib\net20\SharpLibHid.dll" />
3.19 + </files>
3.20 +</package>
3.21 \ No newline at end of file