Game Development Community

Button configuration nightmare

by Tom · in Torque Game Engine · 08/05/2006 (10:34 am) · 2 replies

Ok, in default.binds i set up all my buttons ont he keyboard, mouse and joystick.

however once i start, torque fergets half of these key binds and exports config.cs, there also halve the buttons are left out.

could this have anything to do with options dlg?

also, at the end i added another file called final config.

i load this afer default binds and after config as an attempt to write over a new movemap, without much success. any thoughts?

#1
08/05/2006 (2:51 pm)
Delete the pref and config files before restarting and your changes will be in effect.
#2
08/05/2006 (4:33 pm)
Tom, one of the mistakes Ive made with scripting key bindings is to bind a button to a function which hasnt been defined at the time of the bind script is executed. in other words, make sure the functions youre binding to buttons have been defined in scripts prior to the actual binding code. the easy way to get around this is to bind the key to a small function which calls the function with the event handling script. functions which are directly bound to keys must be defined before the movemap is created, but these functions can call functions which are defined after the movemap is created. this could be your problem.