问题描述
您好,这是我第一次问有关Code Project的问题,所以请和我裸露.
我编写了一个从USB HID设备读取输入的应用程序.它是一个带有35个按键的可编程键盘,以及对感兴趣的用户的Controlpad 682.该设备发送正常的密钥代码.没什么特别的.我可以使用原始输入项目( http://www.codeproject.com/KB/system/rawinput.aspx [^ ].到目前为止一切都很好.
但是,问题在于,当另一个应用程序获得焦点时,它也接收到控制面板发送的键码.我正在尝试寻找一种方法来防止这种情况的发生,但是我的Google技术让我失望了.
因此,我希望这里的某人可能知道如何执行此操作.我不能成为第一个尝试过这种方法的人.请帮帮我!
Hi there, this is my first time asking a question on The Code Project, so please bare with me.
I''ve written an application that reads input from a USB HID device. It''s a programmable keyboard with 35 keys, a Controlpad 682 for those that are interested. This device sends normal keycodes. Nothing special there. I''m able to receive input using the Raw Input project (http://www.codeproject.com/KB/system/rawinput.aspx[^]. So far so good.
The problem, however, is that when another application has focus, it too receives the keycodes sent by the Controlpad. I''m trying to find a way to prevent this from happening, however my google skills are letting me down...
So I''m hoping that someone here might know how to do this. I can''t be the first to ever have tried this. Please, help me!
推荐答案
这篇关于索取USB HID设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!