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
.
精彩评论