Re: driver for USB joystick Logitech Rambler 2



On Sep 20, 10:19 pm, Simon <simon...@xxxxxxxxx> wrote:
Hi, Everyone:

I use Linux Ubuntu Feisty Fawn. I am new to Linux driver programming
although I know C language. I want to obtain or write a driver for a
USB joystick RumblePad2 from Logitech. I have perused the well
referenced book 'Linux Device Drivers' but I still cannot connect the
dots.

I am trying to understand how can I assign a driver to a device. The
device is being recognized by the system and there is a file /dev/
input/event4. I don't know what driver is assigned to that file.
Whatever that driver is, how can I assign my own driver to that device/
file ? If I cannot do it as a user or root, what system files do I
have to edit? Suppose that I want the system to use USB mouse driver
to communicate with the RumblePad. How do I do that?

Thanks for your help,

Simon

HI Simon,
You can probe a your usb device based on its class, subclass
and protocol.
I think the Joystick will come under HID class.
You can refer the usb mouse or keybord driver which come
under the same class
for more info.
You'll have to set up your usb_id_table based on the class
subclass and protocol of the device.
which will do the job on associating your driver to the device.
Once your are done with the framework set up you can think
of the functionality part.

Happy coding, USB is enjoyable :-)

MAx

.



Relevant Pages