Renaming demo application to HID Demo.
2 using System.Collections.Generic;
10 /// Provide the type for the usage collection corresponding to the given usage page.
12 /// <param name="aUsagePage"></param>
13 /// <returns></returns>
14 public static Type UsageCollectionType(UsagePage aUsagePage)
18 case UsagePage.GenericDesktopControls:
19 return typeof(UsageCollection.GenericDesktop);
21 case UsagePage.Consumer:
22 return typeof(UsageCollection.Consumer);
24 case UsagePage.WindowsMediaCenterRemoteControl:
25 return typeof(UsageCollection.WindowsMediaCenter);
33 /// Provide the type for the usage corresponding to the given usage page.
35 /// <param name="aUsagePage"></param>
36 /// <returns></returns>
37 public static Type UsageType(UsagePage aUsagePage)
41 case UsagePage.GenericDesktopControls:
42 return typeof(Usage.GenericDesktop);
44 case UsagePage.Consumer:
45 return typeof(Usage.ConsumerControl);
47 case UsagePage.WindowsMediaCenterRemoteControl:
48 return typeof(Usage.WindowsMediaCenterRemoteControl);
50 case UsagePage.Telephony:
51 return typeof(Usage.TelephonyDevice);
53 case UsagePage.SimulationControls:
54 return typeof(Usage.SimulationControl);
56 case UsagePage.GameControls:
57 return typeof(Usage.GameControl);