mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Saitek USB Gamer's Keyboard
@ 2007-05-17 14:09 Chris Malton
  2007-05-17 14:44 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Malton @ 2007-05-17 14:09 UTC (permalink / raw)
  To: linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Saitek USB Gamer's Keyboard
  2007-05-17 14:09 Saitek USB Gamer's Keyboard Chris Malton
@ 2007-05-17 14:44 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2007-05-17 14:44 UTC (permalink / raw)
  To: Chris Malton; +Cc: linux-kernel

On Thu, 17 May 2007, Chris Malton wrote:

> 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 ?? ?? ??

Chris,

is this device a 0x04f2/0x0418? If so, I have already written a patch 
which adds proper mapping of these keys into input events (also see ticket 
#7352 on bugzilla.kernel.org). This patch is queued for next round of 
mainline merge.

-- 
Jiri Kosina

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-17 14:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-17 14:09 Saitek USB Gamer's Keyboard Chris Malton
2007-05-17 14:44 ` Jiri Kosina

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®