Direct input from modifier keys
by Vern Jensen · in Torque Game Builder · 04/25/2007 (10:46 am) · 1 replies
I would love to see direct input of modifier keys supported in a future version. I'd like to allow keys like shift or control to be used to directly control things in my game. For instance, in a space shooter, Shift could fire your ship's weapon. What I'm asking for is this to be supported:
moveMap.bindCmd(keyboard, "shift", "doStuff();", "stopStuff();");
Currently this only supports shift+something. I want shift alone to trigger events. Reasons:
1) Players should be able to choose ANY key on the keyboard to control the game. This is particularly important in action games.
2) Many keyboards have limitations where things just don't work correctly if more than 2 "normal" keys are held down at once, such as left arrow, up arrow, and space. But modifier keys *do not* have this problem. You can have any 2 normal keys, and *any number* of modifier keys held down at once, and it will still work perfectly.
3) The modifier keys are at a perfect location on the far left of the keyboard for shooting weapons in action games.
4) Look at games like Doom 3. Can you imagine if it didn't allow you to use Shift to run, or Control to fire, or Option to strafe, etc? People would laugh.
I find it pretty surprising direct input of modifiers is not already supported in the engine directly. It seems to essential to anything other than a casual game.
moveMap.bindCmd(keyboard, "shift", "doStuff();", "stopStuff();");
Currently this only supports shift+something. I want shift alone to trigger events. Reasons:
1) Players should be able to choose ANY key on the keyboard to control the game. This is particularly important in action games.
2) Many keyboards have limitations where things just don't work correctly if more than 2 "normal" keys are held down at once, such as left arrow, up arrow, and space. But modifier keys *do not* have this problem. You can have any 2 normal keys, and *any number* of modifier keys held down at once, and it will still work perfectly.
3) The modifier keys are at a perfect location on the far left of the keyboard for shooting weapons in action games.
4) Look at games like Doom 3. Can you imagine if it didn't allow you to use Shift to run, or Control to fire, or Option to strafe, etc? People would laugh.
I find it pretty surprising direct input of modifiers is not already supported in the engine directly. It seems to essential to anything other than a casual game.
Associate David Higgins
DPHCoders.com