I need to differentiate between a keypress of (at least) two usb-keyboards connected to a single PC. Is there a method/precedure available to decide if key 's' (for example) is pressed either by keyboard A or Keyboard B? (preferable language is C#)
Pseudo-Code:
if (keyPressed == 's')
{
if(keyboardID == 'A')
{
print("Key 's' was pressed by Keyboard A");
}
else if (keyboardID == 'B')
{
print("Key 's' was pressed by Keyboard B");
}
}