Wintermute Engine Forum

Wintermute Engine => Technical forum => WME sources discussion => Topic started by: VEn0m on October 19, 2012, 06:49:51 PM

Title: SetCursorPos
Post by: VEn0m on October 19, 2012, 06:49:51 PM
As usual, I'm stuck and need some help from the community :) Here is the situation: game is launching in a window and the position of the mouse cursor on every launch becomes 0,0. I found that it is becomes such after ::ShowWindow(hWnd, nCmdShow) executes. I tried ::SetCursorPos(PosX+g_MinWidth/2,PosY+g_MinHeight/2), but nothing happened. Any ideas how to fix this?  ::slug

FIXED.