Advertisement

Hide and lock mouse

Started by January 08, 2022 05:06 PM
0 comments, last by Peter Petrov 2 years, 11 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