Wintermute Engine > WME sources discussion

SetCursorPos

(1/1)

VEn0m:
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.

Navigation

[0] Message Index

Go to full version