Page 1 of 1

Typing promt

Posted: Fri Jun 11, 2010 1:45 pm
by Age
Can you make typing promt move itself instead of removing text when pressing left arrow?

Script from Engine.Console

Code: Select all

state Typing
{
      ............
      function bool KeyEvent( EInputKey Key, EInputAction Action, FLOAT Delta )
      {
            ............

            else if ( Key==IK_Backspace || Key==IK_Left )
            {
                  if ( Len(TypedStr)>0 )
                        TypedStr = Left(TypedStr,Len(TypedStr)-1);
                  Scrollback = 0;
            }
            return true;

            ............
      }
      ............
}

Re: Typing promt

Posted: Thu Jun 24, 2010 5:37 am
by Skw
I think he means "backspace" = "left arrow" and vice versa when typing in the console. Like in DOS, so you can't edit the text (or long command) from middle of it, only by removing half-end of the text, fixing the typo, and then typing the half-end again. Which sucks.

Did right arrow give characters back?