diff --git a/source/ps/CConsole.cpp b/source/ps/CConsole.cpp index 50fce93c59..e6c515d3cc 100755 --- a/source/ps/CConsole.cpp +++ b/source/ps/CConsole.cpp @@ -8,6 +8,8 @@ #include "scripting/ScriptingHost.h" +//#include "lib/input.h" + CConsole::CConsole(float X, float Y, float W, float H) : m_fX(X), m_fY(Y), m_fWidth(W), m_fHeight(H) { @@ -287,6 +289,28 @@ void CConsole::InsertChar(const int szChar, const wchar_t cooked ) m_iBufferLength--; return; + case SDLK_DELETE: + if (IsEmpty() || IsEOB()) return; + + if (m_iBufferPos == m_iBufferLength-1) + m_szBuffer[m_iBufferPos] = '\0'; + else{ + for(int j=m_iBufferPos; j