fullscreen and mouse grab
[deeprace] / src / miniglut.c
index 54838ae..943a3f2 100644 (file)
@@ -832,6 +832,11 @@ void glutSetCursor(int cidx)
        cur_cursor = cidx;
 }
 
+void glutWarpPointer(int x, int y)
+{
+       XWarpPointer(dpy, None, win, 0, 0, 0, 0, x, y);
+}
+
 void glutSetColor(int idx, float r, float g, float b)
 {
        XColor color;
@@ -1319,6 +1324,11 @@ void glutSetCursor(int cidx)
        }
 }
 
+void glutWarpPointer(int x, int y)
+{
+       SetCursorPos(x, y);
+}
+
 void glutSetColor(int idx, float r, float g, float b)
 {
        PALETTEENTRY col;