Example #1
0
void special(int special_key, int x, int y)
{
    special_key_pressed[special_key] = true;
    
	switch(special_key)
	{
        case GLUT_KEY_END:
            camera.reset();
            break;
	}
}
Example #2
0
void special(int special_key, int x, int y)
{
	switch(special_key)
	{
        case GLUT_KEY_RIGHT:
            camera.setYaw(-0.1);
            break;
        case GLUT_KEY_LEFT:
            camera.setYaw(0.1);
            break;
        case GLUT_KEY_UP:
            camera.setPitch(0.1);
            break;
        case GLUT_KEY_DOWN:
            camera.setPitch(-0.1);
            break;
        case GLUT_KEY_END:
            camera.reset();
            break;
	}
}