Forums
Keyboard control updates in SVN - 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: Keyboard control updates in SVN (/showthread.php?tid=380)



Keyboard control updates in SVN - thelusiv - 10-27-2006

While this most notably improves keyboard play it also helps when using mouse buttons or joystick buttons as gas/brake controls (or other "analog" type controls).

Basically I set up a sort of "ramp" so that when a key or button is pressed, that control gradually increases until reaching its maximum value, instead of just jumping straight up to 100% immediately (the way it used to work). When the key or button is let go, the control gradually falls back down to 0% (again rather than immediately as before). Controls fall off a little slower than they rise, so that it's easy to keep braking or keep accelerating. It is still possible to rev the engine up and break the tires loose this way, so drifting should still be possible.

Please test this out and let me know what you all think. Does this make VDrift drivable with a keyboard? For me, it has become a whole lot easier - I can get around some of the trickier tracks several times in the very fast cars without spinning...Does anyone have any other suggestions on other ways to make keyboard play easier?


- joevenzon - 10-28-2006

I've added ABS in SVN. This should also help to make keyboard playing easier, since with it enabled you can still apply full braking and steer quite well. This needs to be made into a car option that can be turned off, since you probably don't want it on for advanced driving.


- thelusiv - 10-29-2006

The digital control ramping is now an option in the menu. Check Options -> Controls -> Button Control Delay. The options are "off", "short", "medium", and "long". Off is the old way, 0.0 or 1.0, nothing in between. Short uses the constant 5.0 as its multiplier for incrementing the input. Medium uses 7.5 and long 10.0. These values might need to be tweaked a little, I just sort of guessed them...

Joe has also added Traction Control (TCS) which is available in the Options -> Controls menu as well. ABS has been updated with a little smarter algorithm. Overall keyboard play has been vastly improved over the last 3 days...

Please test this new code, which is in SVN now. Let us know how well it works, or if there are any bugs.