Game Development Community

KeyBoard Mappping

by Gary Blake · in Torque Game Engine · 06/29/2005 (5:59 am) · 3 replies

I have remapped some functions to activate AIplayer functions. When I hit the keyboard, each function is executed twice. I need a reference to keyboardmapping.

#1
06/29/2005 (6:00 am)
Yes.. It calls the function when you press a key and when you release it. use this:

function chris(%val)
{
   if (%val)
   {
      doFunction();
   }
}
#2
06/29/2005 (6:55 am)
Thanks....worked perfectly.
How would I have known this (documentation source ??).
#3
06/29/2005 (7:05 am)
I dont know... Tom Bampton told me... It's just one of those things you figure out by asking or searching the forums I guess.... Or you could have looked at all the other funcitons in there. They do the exact same thing.

Maybe it is in the docs some where... I have read all of them (including the source code docs,,, and source code) several times and didn't see it.