On the Mac, which is Unix-based, the keyboard system setup does distinguish keyboards - it allows keyboard-specific remapping of function keys. I don't know how they do it, but I hope this is a useful clue.
Chris On Sat, Oct 10, 2009 at 4:46 PM, Greg Ewing <[email protected]> wrote: >> On Fri, Oct 9, 2009 at 6:33 PM, [email protected] >> <[email protected]> wrote: >> >>> Hi >>> If I have a Linux base application, with 2 USB keyboards connected to >>> it, is it possible to know, when a key is press, from wich keyboard the >>> command is from ? > > You could investigate whether they show up as separate > HID devices in the /dev directory. If so, you should be > able to open them and read events from them individually. > > I don't think you'll be able to distinguish them if you > get all your events through the standard pygame event > queue, though. > > -- > Greg > -- Chris Phoenix [email protected] 650-776-5195 Director of Research Center for Responsible Nanotechnology http://CRNano.org
