开发者

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

开发者 https://www.devze.com 2023-03-31 19:35 出处:网络
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?

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

精彩评论

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