glfw でマウスに小さな問題があります;/。Windows と Ubuntu+Gnome3 では動作しますが、Ubuntu+Unity では動作しません。マウスのコード(ゲームでカメラを回転させるために使用しています):
glfwDisable(GLFW_MOUSE_CURSOR);
int xpos, ypos;
int w,h;
glfwGetMousePos(&xpos, &ypos); // im calculating rot of camera with these values
glfwGetWindowSize(&w,&h); // set mouse
glfwSetMousePos(w/2, h/2); // to center of window.
そして、それはうまくいきませんが、 glfwEnable(GLFW_MOUSE_CURSOR); を設定すると 動作していますが、マウスが表示されます;/どうすればよいですか?