* gameport and USB joysticks/gamepads
@ 2004-12-07 7:58 Luis A. Montes
2004-12-07 10:55 ` Aristeu Sergio Rozanski Filho
0 siblings, 1 reply; 2+ messages in thread
From: Luis A. Montes @ 2004-12-07 7:58 UTC (permalink / raw)
To: linux-kernel
How is the gameport_register_port() supposed to be called for USB
devices? There doesn't seem to be any kernel hook for that. Is it
supposed to happen in userspace?
Also, it seems to me that gameport_register_device is always going to
add a null pointer (dev->node) to the gameport_dev_list, and that
doesn't seem terribly useful. What's the purpose of that?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gameport and USB joysticks/gamepads
2004-12-07 7:58 gameport and USB joysticks/gamepads Luis A. Montes
@ 2004-12-07 10:55 ` Aristeu Sergio Rozanski Filho
0 siblings, 0 replies; 2+ messages in thread
From: Aristeu Sergio Rozanski Filho @ 2004-12-07 10:55 UTC (permalink / raw)
To: Luis A. Montes; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 772 bytes --]
Hi!
> How is the gameport_register_port() supposed to be called for USB
> devices? There doesn't seem to be any kernel hook for that. Is it
> supposed to happen in userspace?
you should use gameport_register_port() only to hardware game ports (e.g.
those found on soundcards).
USB joysticks don't need a gameport, so USB joystick drivers should call
directly input_register_device().
> Also, it seems to me that gameport_register_device is always going to
> add a null pointer (dev->node) to the gameport_dev_list, and that
> doesn't seem terribly useful. What's the purpose of that?
'node' is a kernel style linked list (struct list_head). I don't know
any URL which explains how it works but you may find it in Robert Love's
Linux Kernel Development book.
--
Aristeu
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-07 10:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-07 7:58 gameport and USB joysticks/gamepads Luis A. Montes
2004-12-07 10:55 ` Aristeu Sergio Rozanski Filho
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®