Working on console interaction...
This commit is contained in:
9
main.cpp
9
main.cpp
@@ -3,6 +3,15 @@
|
||||
int current_editor = 0;
|
||||
|
||||
void do_terminal() {
|
||||
const uint8_t key = whichbtn();
|
||||
if (key != KEY_UNKNOWN) {
|
||||
if (key < 30) debugchr(key+61);
|
||||
else if (key < 39) debugchr(key+19);
|
||||
else if (key == KEY_0) debugchr(key+9);
|
||||
else if (key == KEY_RETURN) debug(" ");
|
||||
else if (key == KEY_SPACE) debugchr(32);
|
||||
else if (key == KEY_BACKSPACE) debugchr(8);
|
||||
}
|
||||
cls(0);
|
||||
pdebug();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user