Problem with SetCursorPos in window mode

Posted By: djfeeler

Problem with SetCursorPos in window mode - 11/19/13 10:54

Hello,

I have problem with SetCursorPos in window mode. I can not replace the mouse. In fullscreen it works great. Any idea why this does not work ?

I use

Code:
SetCursorPos((int)mouse_pos.x,(int)VG_souris_posX);
SetCursorPos((int)mouse_pos.x,(int)VG_souris_posY);



Thanks in advance for your idea ^^
Posted By: djfeeler

Re: Problem with SetCursorPos in window mode - 11/20/13 06:09

The good code is :

Code:
SetCursorPos((long)VG_souris_posX,(long)VG_souris_posY);



In window mode SetCursorPos put the mouse to the coordinates of desktop window but not the coordinates of the window of the game. I do not know how to calculate the difference.

Please help me.
Posted By: Kartoffel

Re: Problem with SetCursorPos in window mode - 11/20/13 07:21

window_pos
Posted By: djfeeler

Re: Problem with SetCursorPos in window mode - 11/20/13 09:38

Thanks for your response ^^
© 2024 lite-C Forums