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!
Torque Owner Michael Bacon
Default Studio Name
moveMap.bind(keyboard, "rshift", doSomething);
moveMap.bind(keyboard, "lshift", doSomethingElse);