Key Bindings
by Chris Sargent · in Torque Game Engine · 08/17/2005 (3:17 am) · 4 replies
I was looking at the config.cs file for bindings and I had a question. I want to bind movement to the arrow keys on the keyboard instead of the old w,a,s etc...
How would I go about doing that?
Thanks,
How would I go about doing that?
Thanks,
About the author
#2
moveMap.bind(keyboard, "e", toggleZoom);
Would I do moveMap.bind(keyboard, "arrowup", moveforward); ?
That is what I'm asking how do you define the arrow keys to put in the script?
08/17/2005 (11:59 pm)
Thanks. I understand which files to modify. I was wondering how do I put in the script the arrow keys on the keyboard. For example:moveMap.bind(keyboard, "e", toggleZoom);
Would I do moveMap.bind(keyboard, "arrowup", moveforward); ?
That is what I'm asking how do you define the arrow keys to put in the script?
#3
I am not at home at the moment, but I'll check out and let you know how to do that with a script.
08/18/2005 (2:08 am)
The easiest way is to change it with remap controls in options menu, at least I did that :)I am not at home at the moment, but I'll check out and let you know how to do that with a script.
#4
moveMap.bind(keyboard, down,backwardFunction);
etc
08/18/2005 (3:57 am)
MoveMap.bind(keyboard, up,forwardFunction);moveMap.bind(keyboard, down,backwardFunction);
etc
Torque Owner Brodycat
www.garagegames.com/mg/forums/result.thread.php?qt=33128