resizer demo: adding a bit more output to console to indicate what is going on upon keypress
This commit is contained in:
parent
a40f9e9c4e
commit
f04be0c4f2
@ -202,17 +202,29 @@ void SampleKeyboard( unsigned char cChar, int nMouseX, int nMouseY )
|
||||
{
|
||||
glutSetWindow(nChildWindow);
|
||||
if (glutGet(GLUT_WINDOW_CURSOR)==GLUT_CURSOR_TOP_SIDE)
|
||||
{
|
||||
glutSetCursor(GLUT_CURSOR_RIGHT_ARROW);
|
||||
printf("reverting child window cursor\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
glutSetCursor(GLUT_CURSOR_TOP_SIDE);
|
||||
printf("changing child window cursor\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
glutSetWindow(nWindow);
|
||||
if (glutGet(GLUT_WINDOW_CURSOR)==GLUT_CURSOR_CYCLE)
|
||||
{
|
||||
glutSetCursor(GLUT_CURSOR_RIGHT_ARROW);
|
||||
printf("reverting main window cursor\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
glutSetCursor(GLUT_CURSOR_CYCLE);
|
||||
printf("changing main window cursor\n");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user