this
Code:
SetCursorPos((int)window_pos.x+mouse_pos.x, (int)window_pos.y+mouse_pos.y)

did the job

Thanks.

Last edited by tolu619; 07/04/14 23:11.