/* * Allows user to move camera and light positions using keyboard */ void Keyboard(unsigned char key, int x, int y) { switch (key) { case 27: // ESC exit(0); break; } switch (state) { case MENU: menuManager.KeyboardPress(key); break; case GAME: game->KeyboardPress(key); break; } }