[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Keyboards, other questions
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Keyboards, other questions
- From: The Music Guy <musicguy@xxxxxxxxxxxx>
- Date: Sat, 10 Oct 2009 00:16:56 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 10 Oct 2009 01:17:00 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=D30vvIFpkuB6f3xtQtnUyrgpdASvxkRvQmwkOZrzhqI=; b=OlFzz7x2NrCXDM1qerB4WdMqsQ4kJzOG1Dhrq9ufNZNhxCTZ/nxn5IwpD3YmXnFdPJ WEWtSCTp/lBycMw442Bk92snnyGm5nDpzf9HqD8yWThay2k6y43M/ZGYp3JobUSWK8WK PZiR8xNWToNiowy05exhEHZeBJR+DvqsnhYLM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=I3Zv8tFtg085bnQDFO+UKxVsO+JHEjDogrn8VvlaNT5/owy84YGBPS8JosBruhifmA uxDIbiCLEpputaBE9fO6YC5+C2CLYeKs2oGBu6enRG+6XabEaqfCJUPEB7a19EeZ5jQs 8XVYOEseyb8pdSNjwPYYmKC/Dmy+vSpZT3fHE=
- In-reply-to: <BLU0-SMTP84594E51309960CB07BEC089CB0@xxxxxxx>
- References: <BLU0-SMTP84594E51309960CB07BEC089CB0@xxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
On Fri, Oct 9, 2009 at 6:33 PM, PierreLafrance1@xxxxxxxxxxxx
<PierreLafrance1@xxxxxxxxxxxx> 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 ?
>
> Thanks
>
> --
> Pierre
>
AFAIK, by default most Linux setups treat multiple keyboards as though
they were all the same device. This is true for tty's as well as X. I
believe this is handled by the kernel, but I could be wrong. Getting
multiple keyboards to work as separate devices would definitely
require some per-system configuration requiring root privileges, and
would not be easy to do from within a Python app, assuming it is even
possible.