diff -r 72885c950813 -r cdc5f8f1b79e HidUtils.cs
--- a/HidUtils.cs Sun Mar 15 16:56:31 2015 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,84 +0,0 @@
-//
-// Copyright (C) 2014-2015 Stéphane Lenclud.
-//
-// This file is part of SharpLibHid.
-//
-// SharpDisplayManager is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// SharpDisplayManager is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with SharpDisplayManager. If not, see .
-//
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace SharpLib.Hid
-{
- static class Utils
- {
- ///
- /// Provide the type for the usage collection corresponding to the given usage page.
- ///
- ///
- ///
- public static Type UsageCollectionType(UsagePage aUsagePage)
- {
- switch (aUsagePage)
- {
- case UsagePage.GenericDesktopControls:
- return typeof(UsageCollection.GenericDesktop);
-
- case UsagePage.Consumer:
- return typeof(UsageCollection.Consumer);
-
- case UsagePage.WindowsMediaCenterRemoteControl:
- return typeof(UsageCollection.WindowsMediaCenter);
-
- default:
- return null;
- }
- }
-
- ///
- /// Provide the type for the usage corresponding to the given usage page.
- ///
- ///
- ///
- public static Type UsageType(UsagePage aUsagePage)
- {
- switch (aUsagePage)
- {
- case UsagePage.GenericDesktopControls:
- return typeof(Usage.GenericDesktop);
-
- case UsagePage.Consumer:
- return typeof(Usage.ConsumerControl);
-
- case UsagePage.WindowsMediaCenterRemoteControl:
- return typeof(Usage.WindowsMediaCenterRemoteControl);
-
- case UsagePage.Telephony:
- return typeof(Usage.TelephonyDevice);
-
- case UsagePage.SimulationControls:
- return typeof(Usage.SimulationControl);
-
- case UsagePage.GameControls:
- return typeof(Usage.GameControl);
-
- default:
- return null;
- }
- }
-
- }
-}