Skip to main content
GameDev.net gamedev.net
🔒 Locked

Restricting mouse movement

Started by Ranthalion Jul 22, 2003 at 3:14 PM 2 replies 250+ views
Original Post
Ranthalion
Ranthalion
I''m trying to restrict mouse movement and I''m having a problem. I have a dialog box and in the callback for it I have:

	case WM_MOUSEMOVE:
			SetCursorPos(450,450);
		return 0;
So it should just keep the mouse stuck in one place, which it mostly does. The problem comes in when I hold down a mouse button and start swirling the mouse around. I can get out of the dialog box that way. Do you know why this happens? or how I could fix it?
Ranthalion
Ranthalion
alright, well, cool.. Thanks for the response.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.