Re: Question: Formula Force GP (Force) Feedback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Peter wrote:
> Hi,

Hi!

> my description wasn't that good indeed :)
> 
> I have an Logitech Formula Force GP and tried to get Force Feedback
> working (to play LFS (www.lfs.net) via wine). The wheel is recognized
> properly and as an input device there are no problems. Force Feedback
> isn't working properly, tho. I looked around a bit and found hid-lgff.c,
> which i have modified a bit to get an idea how the effects are
> generated:
> 
>     case FF_CONSTANT:
>         x = effect->u.ramp.start_level + 0x7f; /* 0x7f is center */
>         y = effect->u.ramp.end_level   + 0x7f; /**/
>         CLAMP(x);
>         CLAMP(y);
>         report->field[0]->value[0] = 0x51;
>         report->field[0]->value[1] = 0x08;
>         report->field[0]->value[2] = x;
>         report->field[0]->value[3] = y;
>         dbg_hid("(x, y)=(%04x, %04x)\n", x, y);
>         usbhid_submit_report(hid, report, USB_DIR_OUT);
> >       printk(KERN_INFO "Forces: x=%d y=%d\n",
> >		report->field[0]->value[2], 
> >		report->field[0]->value[3]);
>         break;
> 
> I guess i could have enabled debug somehow, but didn't know how to. It
> did the trick for me anyway. 
> 
> The problem is, that somehow x and y only get values above 0x7f.

This issue is probably fixed by this commit:

http://git.kernel.org/?p=linux/kernel/git/dtor/input.git;a=commitdiff;h=1b11c88d3e8f55dc9d193d19de11e3f7abc1b7d7

-- 
Anssi Hannula
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux