Game Development Community

Tankbuster v2.0.0.0 inputmap bug

by Tom Ogburn · in Torque X 2D · 03/15/2008 (6:45 am) · 1 replies

In Game.cs
In the function -> protected void _SetupInputMap(TorqueObject player)

inputMap.BindCommand(gamepadId, (int)Keys.Escape, null, UnloadLevel);

Should be

inputMap.BindCommand(keyboardId, (int)Keys.Escape, null, UnloadLevel);

gamepad doesn't have an escape key, and this prevents you from exiting the game using the keyboard. You can always use the mouse and click the 'x' in the top right corner so this isn't a high severity bug

--Tom

#1
03/15/2008 (10:04 am)
Good catch, quick code change. It's should be fixed in the next release.

John K.