src/console.cpp
// Used when a key is pressed

Used when a key is pressed
Used when a key is pressed
bool consoleClass::keyUp(char key)
{
	return true;
}
bool consoleClass :: keyUp ( char key ) { return true ; }
Used when a key is pressed
Used when a key is pressed
/*	if (!initialized) return false;

	// reset the address of the next param to be read
	nextParam=0;

	// every time a key is pressed, it means the buffer is working
	// with the current text line... so, the last one is no more
	// buffered
	lastLineBuffered=false;

	switch(key) {
	case '\r':// line break
		// let's see if this line isn't a blank one
		if (currentLetter==0) {
			// it's blank, then let's clear the buffer by
			// putting the zero to the string
			lastLine[currentLetter]=0;
		}

		// we change it because the buffer (lastLine) currently contains
		// the oldest line, and not the void one that appears when
		// you press enter.
		lastLineBuffered=true;

		// scroll once
		if (!scroll.scrollLines(1)) return false;

		// go back to the beginning of the line
		currentLetter=0;

		break;
	case '\b':// backspace
		if (currentLetter>0) currentLetter--;

		break;
	default:// some common letter
		if (currentLetter<maxChars-1) {
			// it's a common letter, add it to the latest line
			lastLine[currentLetter]=key;
			currentLetter++;
		}

		break;
	}
	
	// check... it's not supposed to change a buffered old line
	// anyway, when there is a buffered old line, it means current one
	// is empty.
	if (!lastLineBuffered) {
		// put the zero to the string
		lastLine[currentLetter]=0;

		// write the latest line
		if (!scroll.writeLatestLine(lastLine)) return false;
	}
*/ // all ok
