API location: http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.humaninterfacedevice.aspx
Article API:
[quote]Prior to Windows 8.1, if you built a HID device, youd need to write a fairly substantial COM/Win32 desktop application to retrieve data from, or, to control your device. To get a sense of how youd do this, Microsoft provided the HClient application. If you knew COM, Win32, and C++, this app provided the starting point you needed. However, if you were a .Net programmer or a web developer, the ramp was pretty steep.
For Windows 8.1, Microsoft created the HID WinRT API. This new API lets you write Windows store apps in Javascript, C#, or C++ for a HID device. And, because youre creating store apps, they will run on your Surface or Surface Pro. (If youre an Android developer who created accessories and apps for your Nexus 7, you can now do similar things with the HID WinRT API and your Windows tablet.)
To illustrate the simplicity and power of the HID WinRT API, weve created a sample end-to-end solution. This solution includes plans for building a simple motion-sensor based on the Netduino Plus. When you attach this sensor to your tablet or laptop, and run the sample app, the app monitors the sensor and triggers a short video-capture whenever motion is detected. The solution includes both tutorials and source code.
[/quote]