简体   繁体   中英

How to map USB HID input to keyboard strokes?

I am a .NET developer, and I want to turn my USB HID device (Mouse, Dance Pad, Guitar or Drums, specially Drums) into a keyboard (with few keys, I know). Do I need to develop this from scratch? Is there any tool that does that? Is there any library that would help me?

Back in 2007 I had to roll an in house component to get the desired functionality in absence of any tools or libraries. This is no black art, still getting a decent .NET integration/experience required some work, plus I mostly facilitated C++/CLI for this component due to the Win32 API interop requirements stemming from going the USB via DirectInput route.

You might be better of today by using one of the following components:

I haven't evaluated these yet, but at first sight the one shot article accompanying the latter is not really helpful (with mixed user feedback), while the former appears to be a decent and maintained effort software/project wise and features sample code for different devices. Both might be able to get you going though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM