Adding dependency on SharpLibHid.
Adding hard coded handling of green start key to launch MediaPortal.
1.1 --- a/Server/MainForm.cs Tue Feb 10 17:14:27 2015 +0100
1.2 +++ b/Server/MainForm.cs Sun Mar 15 22:08:30 2015 +0100
1.3 @@ -44,6 +44,7 @@
1.4 using SharpDisplayClient;
1.5 using SharpDisplay;
1.6
1.7 +
1.8 namespace SharpDisplayManager
1.9 {
1.10 //Types declarations
1.11 @@ -192,6 +193,9 @@
1.12
1.13 //Start our server so that we can get client requests
1.14 StartServer();
1.15 +
1.16 + //Register for HID events
1.17 + RegisterHidDevices();
1.18 }
1.19
1.20 /// <summary>
2.1 --- a/Server/SharpDisplayManager.csproj Tue Feb 10 17:14:27 2015 +0100
2.2 +++ b/Server/SharpDisplayManager.csproj Sun Mar 15 22:08:30 2015 +0100
2.3 @@ -31,8 +31,8 @@
2.4 <CreateWebPageOnPublish>true</CreateWebPageOnPublish>
2.5 <WebPage>index.htm</WebPage>
2.6 <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
2.7 - <ApplicationRevision>0</ApplicationRevision>
2.8 - <ApplicationVersion>0.2.2.%2a</ApplicationVersion>
2.9 + <ApplicationRevision>1</ApplicationRevision>
2.10 + <ApplicationVersion>0.3.0.%2a</ApplicationVersion>
2.11 <UseApplicationTrust>false</UseApplicationTrust>
2.12 <CreateDesktopShortcut>true</CreateDesktopShortcut>
2.13 <PublishWizardCompleted>true</PublishWizardCompleted>
2.14 @@ -109,6 +109,9 @@
2.15 <Reference Include="NAudio">
2.16 <HintPath>..\packages\NAudio.1.7.2\lib\net35\NAudio.dll</HintPath>
2.17 </Reference>
2.18 + <Reference Include="SharpLibHid">
2.19 + <HintPath>..\packages\SharpLibHid.1.0.0\lib\net20\SharpLibHid.dll</HintPath>
2.20 + </Reference>
2.21 <Reference Include="System" />
2.22 <Reference Include="System.Configuration" />
2.23 <Reference Include="System.Core" />
2.24 @@ -127,6 +130,7 @@
2.25 </ItemGroup>
2.26 <ItemGroup>
2.27 <Compile Include="CbtHook.cs" />
2.28 + <Compile Include="MainFormHid.cs" />
2.29 <Compile Include="NetworkManager.cs" />
2.30 <Compile Include="DialogBox.cs" />
2.31 <Compile Include="Display.cs" />
3.1 --- a/Server/packages.config Tue Feb 10 17:14:27 2015 +0100
3.2 +++ b/Server/packages.config Sun Mar 15 22:08:30 2015 +0100
3.3 @@ -1,4 +1,5 @@
3.4 <?xml version="1.0" encoding="utf-8"?>
3.5 <packages>
3.6 <package id="NAudio" version="1.7.2" targetFramework="net45" />
3.7 + <package id="SharpLibHid" version="1.0.0" targetFramework="net45" />
3.8 </packages>
3.9 \ No newline at end of file