locked
multiple keyboards, can they be distinguished in event handlers? RRS feed

  • Question

  • I have machine with two keyboards attached.  They keyboards are attached via USB.  When I receive KeyPress (or other keyboard related events) in my application is it possible to identify which keyboard the keypress came from?  At the device layer this could be distinguished by bus attachments but I'm not sure how you would access this via .NET interfaces if it's even possible.

    Any ideas?

    Thanks

    Saturday, November 25, 2006 6:48 AM

Answers

  • No, this is dealt with at the device driver level.  Beyond those, it can no longer tell where the keystroke came from.
    Saturday, November 25, 2006 11:30 AM

All replies

  • No, this is dealt with at the device driver level.  Beyond those, it can no longer tell where the keystroke came from.
    Saturday, November 25, 2006 11:30 AM
  • Dear Tyler,

    You can see the topic How to get input from various keyboards with directInput to see the discutions about your similar questions.

    Note that the solution to identify the Keypress events from various keyboards isn't use DirectInput object, but to use SDGToolkit.

    You have to use a .net language because the .dll only work over them.

    I hope this help you.

    Regards from Paraguay

    Euclides Chavez

    Saturday, December 2, 2006 3:35 PM