win32: updating keyboard down/up handling. Split off to own function that deals with...
[freeglut] / src / mswin / fg_cursor_mswin.c
index b0eda70..bec1876 100644 (file)
@@ -113,3 +113,14 @@ void fgPlatformWarpPointer ( int x, int y )
 }
 
 
+void fghPlatformGetCursorPos(SFG_XYUse *mouse_pos)
+{
+    /* Get current pointer location in screen coordinates
+     */
+    POINT pos;
+    GetCursorPos(&pos);
+
+    mouse_pos->X = pos.x;
+    mouse_pos->Y = pos.y;
+    mouse_pos->Use = GL_TRUE;
+}
\ No newline at end of file