Added crouch toggle, global bool called isCrouch, function agent_toggle_down bound to toggle_down.

Shift+crouch=toggle, crouch doesn't work while toggle crouched, at the moment.
Formatted keys.ini to be completely aligned.
This commit is contained in:
Lirusaito
2012-01-11 11:04:12 -05:00
parent 8543106f5e
commit 4de23007a5
5 changed files with 239 additions and 214 deletions

View File

@@ -1098,6 +1098,8 @@ bool LLAppViewer::mainLoop()
&& !gFocusMgr.focusLocked())
{
joystick->scanJoystick();
if(isCrouch)
gAgent.moveUp(-1);
gKeyboard->scanKeyboard();
}