Game Development Community

Control binding

by abhinav · in Torque 3D Professional · 10/29/2012 (6:09 pm) · 4 replies

Hey any body know how to connect key bindgs with control bindings

#1
10/30/2012 (7:45 am)
Look at scripts/client/default.bind.cs. This is where the game's control mappings are by default.

Note that if you change bindings in this file you have to then ensure that you've deleted scripts/client/config.cs (if it exists) before your changes will take effect.

You can also add mapping connections to the options page of the settings dialog in game - can't remember the file this is in, I'll try to get back to this later today.
#2
10/30/2012 (4:06 pm)
You might take a look at how the optionsDlg handles the key to bind functioning.

Also, have a look at how actionMaps function, you can easily switch a player's control map by means of sending down a clientCmd to pop the current map and push a new map into play.
#3
10/30/2012 (6:54 pm)
Options Dialog scripts define bindings that appear in the dialog keybinding page in core/scripts/gui/optionsDlg.cs starting at line 425.

It's late, but it's still "today!"
#4
10/31/2012 (11:12 pm)
richard you r right if was found in option.cs