From: Fabien B. <fab...@fr...> - 2002-04-11 09:32:00
|
Rodrigo Damazio wrote : > Fabien Brachere wrote: > > > > >Ok, I didn't have an heart attack, and I put all this stuff on a very > >minimal web site: http://madfab.free.fr/ff/index.html > > > >Fabien Brachere > > > Nicely done...perhaps you'd like to help with the PID code? > Instead of registering itself for specific USB device IDs, it's a > subclass of the HID class, so whenever a HID device is detected, it > checks if it's also PID-compliant, and if it is then you can use force > feedback calls on it(this also allows us to not worry at all about > reading the axes input, since HID does that already)...the structs for > these calls are the very same that are used for I-Force, the only > difference is how we generate and send packets to the device... I know that the Sidewinder is registered by the HID module, but I'm not satisfy with this: the joydev module report 24 buttons and 10 axes (it's a big joystick but not so big ...), the only quick solution I found is to short-cut hid by specifying USB device IDs, it's just for development, I think we can see this later. The first important thing is to implement correct upload effect to the device memory, once uploaded it's trivial to play it. > It's a reasonably big set of commands to implement, so I > estimate it should take about a month or two for it to be 100% > working...the Sidewinder will work sooner though, 'cause it has its own > memory management...but we'll have to implement memory management for > devices that don't have it...that'll be a hassle, specially since we > don't have a good way to debug the device's internal memory...but let's > leave that for later and get the Sidewinder working first... > > Rodrigo > I'm OK with this, when the sidewinder will work, we can add memory management in a sub-structure. Fabien |