you need to register the mouse callback function, it has the following signature:
void glutMouseFunc(void (*func)(int button, int state, int x, int y));
Here is a tutorial that covers some basics here
Edit: If you want the position normalization (0.0 - 1.0) to divide by width and height:
float x1 = x /(float) width; float y1 = y /(float) height;
source share