Game Development Community

Binding to shift key?

by Daniel Buckmaster · in Torque Game Engine · 12/23/2007 (12:37 am) · 2 replies

I've modified the engine to make the player use different movement speeds when a flag (mWalking) is set, and I have a console method to toggle the flag. I want to be able to have the player hold down shift to walk, but you can't bind to shift individually. What do I need to do here?

About the author

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


#1
12/23/2007 (4:10 pm)
Have you tried:

moveMap.bind(keyboard, "rshift", doSomething);
moveMap.bind(keyboard, "lshift", doSomethingElse);
#2
12/23/2007 (10:41 pm)
Ooh. No. Thanks :) It works...