On 4/10/07, Richard Bolkey <[EMAIL PROTECTED]> wrote:
First off, I've never made a patch before, which I guess I better learn,
but for now if anyone wants to add the device_type for the Logitech
Force 3D Pro Joystick to hid-lgff.c, it's { 0x046d, 0xc286, ff_joystick }.

Now for a few follow up questions (this is a whole lot of new stuff, so
bear with me).

1) I'm gathering that Logitech keeps their hid reports secret and
non-standard, or else I'd just be using the HID PID driver?  So, were
the values in the reports found in hid_lgff_play discovered through
trial and error?  How would I find what the report for FF_SPRING should
look like?

You can do that by spying on the USB traffic generated by an existing driver.
That's what I did. I thought I had managed to identify the report used
for springs, but at that point my device died and that's where I
stopped.


2) Previous question assumes that is where I should implement the effect
since ml->play_effect is referencing that function in ff_memless.c.  But
it sounded like Anssi was recommending doing a spring->constant
conversion akin to what looks like a periodic->rumble conversion in
ml_combine_effects?

That's another way of doing it.


Thanks,
Rick

Reply via email to