mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Linux implementation. Include changes for gcc x64.
This commit is contained in:
parent
4e52824a42
commit
4e9034854d
56 changed files with 1108 additions and 3075 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue