mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chris Malton <chrism@cjsoftuk.dyndns.org>
To: linux-kernel@vger.kernel.org
Subject: Saitek USB Gamer's Keyboard
Date: Thu, 17 May 2007 15:09:03 +0100	[thread overview]
Message-ID: <464C61FF.6080606@cjsoftuk.dyndns.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 715 bytes --]

I have been working on this device for a while, and have come up with 
the following:

The protocol is simple:

?? ?? 52 70 ?? ?? ??
??
KC 1 [DOWN]
?? ?? 52 70 ?? ?? ??

KC	Key
48	1
49	2
50	3
51	4
52	5
53	6
54	7
55	8
56	9
57	Mode A
58	Mode B

The ?? bits represent seemingly random numbers that appear through 
/dev/input/event3, which gets created when the keyboard is plugged in.

I'm in the process of creating a userland application that reads from 
/dev/input/event3 and acts accordingly, based on user preferences.

Should it be the job of the kernel to do the command mapping (and 
subsequently create a virtual keyboard), or should it stay as a 
userland-only program?

I would be intrigued to know.

Chris

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 2146 bytes --]

             reply	other threads:[~2007-05-17 14:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-17 14:09 Chris Malton [this message]
2007-05-17 14:44 ` Jiri Kosina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=464C61FF.6080606@cjsoftuk.dyndns.org \
    --to=chrism@cjsoftuk.dyndns.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®