Esempio n. 1
0
 internal HidValue(HidReader reader, HidPValueCaps valueCaps, ushort usage)
 {
     this.reader    = reader;
     this.valueCaps = valueCaps;
     UsageAndPage   = new HidUsageAndPage(valueCaps.UsagePage, usage);
 }
Esempio n. 2
0
 internal HidButton(HidReader reader, HidPButtonCaps buttonCaps, ushort usage)
 {
     this.reader     = reader;
     this.buttonCaps = buttonCaps;
     UsageAndPage    = new HidUsageAndPage(buttonCaps.UsagePage, usage);
 }
Esempio n. 3
0
 public RawInputDeviceRegistration(HidUsageAndPage usageAndPage, RawInputDeviceFlags flags, IntPtr hWndTarget)
     : this(usageAndPage.UsagePage, usageAndPage.Usage, flags, hWndTarget)
 {
 }
Esempio n. 4
0
 public static bool IsSupported(HidUsageAndPage usageAndPage) =>
 usageAndPage.UsagePage == 0x0D;