Trying to bind 'enter' to command.
by Anders Jacobsen · in Torque Game Engine · 07/14/2005 (7:17 pm) · 5 replies
Is it 'illegal' to bind the enter/return key(s)?
In any case, using the bind below I'm unable to make hitting enter call up the activateChat() function.
Any pointers? thanks :)
In any case, using the bind below I'm unable to make hitting enter call up the activateChat() function.
moveMap.bindCmd(keyboard, "enter", "", "activateChat();");
Any pointers? thanks :)
About the author
#2
07/14/2005 (7:25 pm)
I wanted to bind enter to chat as well.
#3
moveMap.bindCmd(keyboard, "enter", "", "echo(\"Enter pressed\");");
into the console, and see if it echos.
You might need to change the \" to /" im not sure what slash is to be used.
07/14/2005 (7:33 pm)
Hmm...try just puting moveMap.bindCmd(keyboard, "enter", "", "echo(\"Enter pressed\");");
into the console, and see if it echos.
You might need to change the \" to /" im not sure what slash is to be used.
#4
07/14/2005 (7:34 pm)
How unseasoned of me. Now it works :) This makes me soooo happy :)
#5
Thanks all, it works now :)
07/14/2005 (7:35 pm)
Ah, you're right kc, I should have done that for easier debug :)Thanks all, it works now :)
Torque Owner Cinder Games