0

My question is can you check for keyboard input within a loop without halting the loop itself.

while(condition)
{
    if(keyboard input)
        action;

    more code;
    more code;
    more code;
    more code;
}

edit:
I'm using a linux machine.

Axios
  • 49
  • 2

0 Answers0