PDA

View Full Version : how do i captuer the Up arrow key



openglDUMBO
10-16-2006, 07:50 PM
i have this, but i dont know how to capture the UP arrow key, please help me
this is C++


void myKeyboard(unsigned char c, int x, int y)
{
switch (c)
{
case 'q':
exit(0);
break;
case '[':
changePoly(0,.2);
break;
case ']':
changePoly(0,-.2);
break;
case ',':
changePoly(1,.001);
break;
case '.':
changePoly(1,-.001);
break;
case 's':
break;
default:
break;
}

}

dorbie
10-16-2006, 08:56 PM
This is not really an OpenGL question and you don't mention your OS or other details. I think this is probably the wrong forum.