void KeyboardHandle(unsigned char key, int x, int y) { //std::cout << "KeyboardHandle." << std::endl; switch(key) { case ESCAPE: glutDestroyWindow(WindowStatus::getSingletonPtr()->window); exit(0); default: break; } renderSystem.getCamera()->OnKeyboard(key); }
void SpecialKeyboardHandle(int key, int x, int y) { switch(key) { case GLUT_KEY_UP: case GLUT_KEY_DOWN: case GLUT_KEY_LEFT: case GLUT_KEY_RIGHT: case GLUT_KEY_PAGE_DOWN: case GLUT_KEY_PAGE_UP: renderSystem.getCamera()->OnSpecialKeyboard(key); break; default: break; } }