C kbhit() help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SpecialKay
    New Member
    • Mar 2008
    • 109

    #1

    C kbhit() help

    hey guys, i have a threaded program, i have loop that contunes until i get a kbhit()
    then, i playback repetively untill i get another kbhit().

    EDIT:
    the first kbhit happens on a child thread of the second kbhit, the child thread comes before the loop starts

    Problem:
    the second kbhit() is always true, there for my

    while(!kbhit())

    is not working.

    any ideas?
  • sujaiganesh
    New Member
    • Sep 2008
    • 5

    #2
    when you are using nested kbhit(),
    if you press any key then first loop is true after that if you press again second loop is true

    Comment

    Working...