wip
This commit is contained in:
1 parent
a128048a8f
commit
5e887e3688
12 files changed
+134
-133
No files matched your search
+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