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