All I need to explore a plethora of possibilities is to know how on earth to scan for keypresses?
I mean sort of like
while(1) {
if (keypressed)
move(UP);
}
...so I can make realtime games/apps.
Is this included in ncurses?
All I need to explore a plethora of possibilities is to know how on earth to scan for keypresses?
I mean sort of like
while(1) {
if (keypressed)
move(UP);
}
...so I can make realtime games/apps.
Is this included in ncurses?
It says that STDIN_FILENO is undeclared function. HELP
Im using G++ compiler
STDIN_FILENO is the file descriptor of your terminal you are manipulating. This is usually 0 for your terminal.
Ok Im using this kbhit function that was made here, but there is one problem. Rather than just returning true or false if a key was hit it just stays there and waits in the function freezing up the program until a key is pressed. HELP PLEASE
Ive determined I want to use forks. How do I use them. I am having trouble finding information on them. Fork()
Please help