void mouse(int button, int state, int x, int y) { switch (button) { default: if (state == GLUT_DOWN) current_assignment.handleInput(button, x, y); } }
void keyboard(unsigned char key, int x, int y) { switch (key) { case VK_ESCAPE: glutDestroyWindow(winID); exit(0); break; default: current_assignment.handleInput(key); } }