885e169d3f174a1bc0b97f613fdd88b0153e2217
[mesa.git] / src / glut / os2 / glut_warp.cpp
1
2 /* Copyright (c) Mark J. Kilgard, 1996, 1997. */
3
4 /* This program is freely distributable without licensing fees
5 and is provided without guarantee or warrantee expressed or
6 implied. This program is -not- in the public domain. */
7
8 #include <stdlib.h>
9 #include <stdarg.h>
10 #include <stdio.h>
11
12 #include "glutint.h"
13
14 /* CENTRY */
15 void GLUTAPIENTRY
16 glutWarpPointer(int x, int y)
17 {
18 // XWarpPointer(__glutDisplay, None, __glutCurrentWindow->win,
19 // 0, 0, 0, 0, x, y);
20 POINTL point;
21 point.x = x;
22 point.y = y;
23 WinMapWindowPoints(__glutCurrentWindow->win,HWND_DESKTOP,&point,1);
24 WinSetPointerPos(HWND_DESKTOP, point.x, point.y);
25
26 XFlush(__glutDisplay);
27 }
28
29 /* ENDCENTRY */