开发者

Determine more information about PS/2 source with .NET / Windows API?

Say I have two peripheral devices, both connected via PS/2 (such as as keyboard and a scanner). Is there any way to distinguish between the sources programmatically?

I'd like to know whether the input came from th开发者_C百科e keyboard or the scanner.


You can use the RegisterRawInputDevices function. For a complete sample application check this article Using Raw Input from C# to handle multiple keyboards.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜