Re: [Plib-devel] Re: WIN32 USB joystick name problem - possible fix [was: Joystick documentation pro
Brought to you by:
sjbaker
|
From: David M. <da...@me...> - 2002-09-08 14:05:52
|
Sebastian Ude writes: > Err ... who says that the name that is going to be returned by the > JSIOCGNAME ioctl () on Linux is actually the name read from the USB > hardware ? You can plug in any arbitrary USB game device and get its name. Those names are not present anywhere in the Linux kernel code when I do a search through it. > Don't you also load - besides the USB, USB-HID, input and joydev modules - > a particular driver from drivers/char/joystick for an USB joystick? No: those are legacy drivers for gameport devices only. Here's a complete module listing for my computer with a USB yoke and rudder pedals plugged in and detected (mastro3 is for my sound card, and NVdriver is for my video card): Module Size Used by Tainted: P maestro3 24712 3 (autoclean) ac97_codec 9568 0 (autoclean) [maestro3] sr_mod 11448 0 (autoclean) ide-scsi 7360 0 cdrom 28672 0 (autoclean) [sr_mod] scsi_mod 79480 2 (autoclean) [sr_mod ide-scsi] hid 16576 0 (unused) mousedev 3808 1 joydev 6752 0 input 3264 0 [hid mousedev joydev] usb-uhci 20516 0 (autoclean) (unused) NVdriver 988480 11 (autoclean) parport_pc 12292 1 (autoclean) lp 5952 0 (autoclean) parport 13856 1 (autoclean) [parport_pc lp] 3c589_cs 8676 1 ds 6568 2 [3c589_cs] i82365 22284 2 pcmcia_core 46976 0 [3c589_cs ds i82365] vfat 9276 1 (autoclean) fat 29112 0 (autoclean) [vfat] printer 5568 0 The nice thing about USB is that you don't need a custom driver -- hid and joydev handle everything generically. All the best, David -- David Megginson, da...@me..., http://www.megginson.com/ |