Declaring the Right Device Capability

When you declare a device capability for a HID device, you use humaninterfacedevice as the protocol name, and the m2:Function Type value is used to specify the usage:

<Capabilities>   <m2:DeviceCapability Name="humaninterfacedevice"> <m2:Device Id="device">       <m2:Function Type="usage:usagePage usageId"/>     </m2:Device>   </m2:DeviceCapability>   ... </Capabilities>

The device specification supports the vidpid format shown earlier, or it can be set to any. The usagePage and usageId values are hexadecimal numbers that identify the intended usage of the device. (There can be more than one m2:Function element if more than one usage applies.) A usage page represents a broad ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.