X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffg_cursor_mswin.c;h=bec1876c6c1b10eed96337d1d9516efe20f66ef9;hb=0f15fc81253f5e91c50c8e5922f981f8ee64556f;hp=b0eda7028c8bd73fd6a21a2b8745607006bae22f;hpb=5b3d339481bac6dbaeb599bffc1325f716585bfe;p=freeglut diff --git a/src/mswin/fg_cursor_mswin.c b/src/mswin/fg_cursor_mswin.c index b0eda70..bec1876 100644 --- a/src/mswin/fg_cursor_mswin.c +++ b/src/mswin/fg_cursor_mswin.c @@ -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