wip
This commit is contained in:
+10
-9
@@ -2,15 +2,16 @@
|
||||
#include <ncurses.h>
|
||||
|
||||
void Input::get_input() {
|
||||
while(true) {
|
||||
initscr();
|
||||
cbreak();
|
||||
noecho();
|
||||
while(true) {
|
||||
initscr();
|
||||
cbreak();
|
||||
noecho();
|
||||
|
||||
m_current_key = getch();
|
||||
endwin();
|
||||
if(m_current_key == 'q') {
|
||||
break;
|
||||
m_old_key = m_current_key;
|
||||
m_current_key = getch();
|
||||
endwin();
|
||||
if (m_current_key == 'q') {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user