Add code to test leaving game mode to return to window mode...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37902 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2010-08-04 14:38:13 +00:00
parent e45b794a5d
commit 2d189f198f

View File

@ -139,6 +139,16 @@ keyboard(unsigned char key, int x, int y)
init();
break;
}
case 'l':
case 'L': {
// return to default window
glutLeaveGameMode();
if (!glutGetWindow())
// exit if none
exit(0);
break;
}
}
}