Game Development Community

Binding to ctrl...

by Daniel Buckmaster · in Torque Game Engine · 09/27/2008 (6:38 am) · 5 replies

I'm sure there's a simple answer to this question. A search didn't help. But here's the problem. ctrl is a modifier key, so you can't bind a function directly to it. What happens if I want to use ctrl for a hold-crouch? Is that too much to ask? :P

About the author

Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!


#1
09/27/2008 (7:15 am)
What happens if you bind it to "ctrl ctrl"?
#2
09/27/2008 (8:19 am)
[quote]What happens if you bind it to "ctrl ctrl"?[quote]

Well... That seems to be a good way to do it.
#3
09/28/2008 (12:45 am)
Doesn't seem to work. I don't get the console error like I do with just binding it to ctrl, but the command still doesn't work.
#4
09/28/2008 (10:33 am)
Aha! An pold forum thread came to my aid - you have to bind to a specific control if you want it to not be a modifier. And for some reason, the name to use is lcontrol rather than lctrl. :P
So for anyone in the same boat - bind your command to lcontrol.
#5
06/18/2009 (12:00 pm)
Fantastic, thank you for the info. I've been browsing for this answer for quite some time.