🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Hide and lock mouse

Started by
0 comments, last by Peter Petrov 2 years, 5 months ago

Hello, everyone!

I develop my game prototype using BGFX + pure Win32 API for now. In future I will migrate to SDL.

I would like: 1) Hide mouse pointer (right now I use ShowCursor(FALSE); Win32 API);

2) Lock mouse pointer to my application window. By some reason ClipCursor() Win32 API function

does not work as I expect. It limits mouse movement to the current window, but…. I use mouse move messge handler to handle user direction and when mouse is near window border the user can not rotate its head.

Any help is anticipated!

This topic is closed to new replies.

Advertisement