Game Development Community

Bind Action Any Key

by Dany · in Torque X 2D · 12/28/2007 (3:42 am) · 3 replies

Hello,

I want to bind an action when you press any key

but how ??
exemple on escape key
-------
inputMap.BindAction(keyboardId,(int)Keys.Escape,pressAnyKey);
-------

this use for skip a sequence


thanks for your help

#1
12/28/2007 (4:59 am)
I think the binding "anykey" actually works. Look at this thread:
http://www.garagegames.com/mg/forums/result.thread.php?qt=29428
#2
12/28/2007 (5:56 am)
Sorry but I works with torque X not torque game engine !
there are no Keys.anykey in torque X !!
#3
05/03/2015 (7:52 pm)
NOTE:

For anyone looking for how to bind to the escape key, its:

keyMap.bind(keyboard,"escape",pauseGame);