Linux implementation. Include changes for gcc x64.

This commit is contained in:
LuisAntonRebollo 2015-01-24 22:08:26 +01:00
parent 4e52824a42
commit 4e9034854d
56 changed files with 1108 additions and 3075 deletions

View file

@ -113,6 +113,11 @@ void StdConsole::enable(bool enabled)
}
}
void StdConsole::enableInput( bool enabled )
{
stdConsoleInputEnabled = enabled;
}
bool StdConsole::isEnabled()
{
if ( stdConsole )
@ -137,6 +142,7 @@ StdConsole::StdConsole()
iCmdIndex = 0;
stdConsoleEnabled = false;
stdConsoleInputEnabled = false;
Con::addConsumer(stdConsoleConsumer);
inpos = 0;
lineOutput = false;
@ -233,6 +239,10 @@ void StdConsole::process()
if (numEvents == -1)
return;
// TODO LINUX, when debug in qtCreator some times we get false console inputs.
if( !stdConsoleInputEnabled )
return;
typedData[numEvents] = '\0';
if (numEvents > 0)
{