lkml.org 
[lkml]   [2004]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: gameport and USB joysticks/gamepads
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

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.083 / U:1.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site