Game Development Community

Binding ctrl button

by Tomasz Chudy · in Torque Game Engine · 03/08/2006 (11:53 am) · 5 replies

Hi all

I want to use control button as a single key to do something like this:

moveMap.bind(keyboard, "ctrl", myFunction);

But it doesn't work :( Combination "ctrl something" works fine but I need just this one.
What to do ?

#1
03/08/2006 (11:57 am)
Try it without qoutes, just ctrl.
#2
03/08/2006 (12:16 pm)
I've tried with quotes and without.

I've tried also:

moveMap.bind(keyboard, ctrl, myFunction);
moveMap.bind(keyboard, alt, myFunction);
moveMap.bind(keyboard, shift, myFunction);

No result :(
#3
03/08/2006 (12:24 pm)
Oh, sorry, my bad. You need either lctrl or rctrl. Same goes for alt and shift.
#4
03/08/2006 (12:33 pm)
Big thanks for your help !

PS. Not lctrl,rctrl but lcontrol,rcontrol but thanks anyway for giving me correct search direction :)
#5
03/08/2006 (12:39 pm)
Huh, I must've been looking at the wrong file or something. Anyway, glad I could help and thanks for letting me know what it actually is.