GASimple/callbacks.cpp
void mouseCallback(int button, int state, int x, int y) {
	y = height - y;	// reverse the y with the current height
	switch (getStage()) {
	case PRELOGIN:
		PreLoginMouse(button, state, x, y);
		break;
	case PRESTART:
		PrestartMouse(button, state, x, y);
		break;
	case RUNNING:
		RunningMouse(button, state, x, y);
		break;
	case PAUSED:
		PausedMouse(button, state, x, y);
		break;

	}
	glutPostRedisplay();
}
/*** mouseCallback(int, int, int, int) | function to handle mouse actions in the GLUT window ***/
mouseCallback(int, int, int, int) | function to handle mouse actions in the GLUT window
mouseCallback ( int int int int ) | function to handle mouse actions in the GLUT window
void mouseCallback(int button, int state, int x, int y) {
	y = height - y;	
	switch (getStage()) {
	case PRELOGIN:
		PreLoginMouse(button, state, x, y);
		break;
	case PRESTART:
		PrestartMouse(button, state, x, y);
		break;
	case RUNNING:
		RunningMouse(button, state, x, y);
		break;
	case PAUSED:
		PausedMouse(button, state, x, y);
		break;
	}
	glutPostRedisplay();
}
void mouseCallback ( int button , int state , int x , int y ) { y = height - y ; switch ( getStage ( ) ) { case PRELOGIN : PreLoginMouse ( button , state , x , y ) ; break ; case PRESTART : PrestartMouse ( button , state , x , y ) ; break ; case RUNNING : RunningMouse ( button , state , x , y ) ; break ; case PAUSED : PausedMouse ( button , state , x , y ) ; break ; } glutPostRedisplay ( ) ; }
mouseCallback(int, int, int, int) | function to handle mouse actions in the GLUT window
mouseCallback ( int int int int ) | function to handle mouse actions in the GLUT window
// reverse the y with the current height