The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
|
ForceFeedback effect.direction=0xC000 [SOLVED] - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4) +--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9) +--- Thread: ForceFeedback effect.direction=0xC000 [SOLVED] (/showthread.php?tid=1414) |
ForceFeedback effect.direction=0xC000 [SOLVED] - buzle - 12-23-2010 Hi, first let me thank the developers and contributors for their efforts; VDrift is a really nice game and quite a joy to drive. I have a Guillemot FF Wheel, which uses iforce module. I had some trouble setting up the wheel with vdrift (svn 2996). It didn't seem to work at all, although it has been reported in the console that the force feedback has been initialized. So I looked at the code and by some experimenting I found that if I uncomment the line: Code: effect.direction=0xC000; and remove the default: Code: effect.direction=0; the FF starts working. I looked at the kernel headers, which have the following to say about the ff_effect struct: Code: * Direction of the effect is encoded as follows: I only guess there are some wheels that require this to be set to 0x0000 to work properly and some others need different values. Any comments on what was the idea behind this? Cheers, Marko - thelusiv - 12-24-2010 Interesting. Looking through the SVN logs, I found that this change was made in r2387: http://svn.vdrift.net/viewvc.cgi?view=rev&root=VDrift&revision=2387 Joe, any comments on that? buzle, thanks for looking into this. It would be really helpful to others if you posted some information about how you got your Guillemot wheel working on Linux on our wiki. It would go here: http://wiki.vdrift.net/?title=Guillemot_FF_support&action=edit You could use the Logitech G25 page as an example to work from: http://wiki.vdrift.net/Logitech_G25_support I haven't any experience with iforce, so what does the effect direction mean? For steering wheels, this force is not really applied in a certain direction, but around an axis. - joevenzon - 12-24-2010 I probably put that there when I was playing with FF with my wheel. If I recall, it didn't have any effect at all for me. - buzle - 12-27-2010 If there is no harm, perhaps better set it to 0xC000, it doesn't work at all with 0 here. Other than that, it works out of the box on Ubuntu 10.10, only /dev/input write permission setting is needed. I'll be glad to post the relevant info on the wiki. Just let me know when the patch is in, so I can refer to the corrent svn revision. - buzle - 12-27-2010 I did a page at, there is stil SVN rev missing... http://wiki.vdrift.net/IForce_FF_Support - thelusiv - 12-27-2010 Fixed, r3012. Thanks! - thelusiv - 01-04-2011 Buzle, thanks for your help with the wiki and for discovering this problem. Closing this thread now. |