The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



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.