Ask Your Question

Revision history [back]

My experience leads me to believe that cvWaitKey only picks up keys during the wait period and misses some or all keys pressed outside of the wait.

On the question of arrow keys I suggest you write a little piece of code to print out what cvWaitKey actually sees when you press the appropriate keys. I get 82 and 84 (decimal) for the up and down arrows but these values may be different on some other systems.

regards

David Laine