Jump to content



Photo
- - - - -

Iskeydown Problem

input key input blocking block

  • Please log in to reply
No replies to this topic

#1 Archon III

Archon III

    Newbie

  • Members
  • Pip
  • 1 posts

  • Calculators:
    fx-9860GII

Posted 24 February 2014 - 04:07 PM

I have a simple loop for a small simulation I'm making. The problem is with IsKeyDown. The code works as expected in the emulator on my computer, but when I put it on my calculator (fx-9860GII) the function just stops execution and nothing happens even when I press the exit key.

while(!IsKeyDown(KEY_CTRL_EXIT)) {
  update();
  draw();
  Sleep(timeStep * 1000);
}

Isn't IsKeyDown not supposed to block execution? And is there any other way to check for key input without blocking execution? Thx.



Also tagged with one or more of these keywords: input, key input, blocking, block

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users