>>293
使った事が無いのですが、説明通りだとするとこれが使えそうですね。

void glutPassiveMotionFunc(void (*func)(int x, int y));

http://opengl.jp/glut/section07-06.html