cvWaitKey is not generating key codes for naviagation keys
I have involved with opencv key function ie cvWaitKey(0).whenever i press the "r" key the point on opencv image window is moving right direction, for "L" towards left ,for "u" upward direction as bellow.
while(true)
{
int key = cvWaitKey(0);
cout<<"key="<<key<<endl;
if (key == 'u'){
y -= 1;
}else if(key=='d'){
y += 1;
}else if(key=='l'){
x -= 1;
}else if(key=='r'){
x+= 1;
}
showImage();
}
yes it working fine.
My problem is with arrow keys the function cvWaitKey(0) is not working. Does Opencv provide a another function? if not can anyone give me suggestion about how to do that?
Thanking You.