• Advertisement
Sign in to follow this  

How do i lock pointer to window or set pointer position?

This topic is 957 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a UWP application in C#, I'm using an independent input source for the SwapChainPanel (not sure if that's relevant or not). But I can't work out how to either lock the mouse to the window or force the mouse position. This is for a first person mouse controller, so i really need to stop the mouse from leaving the window because I lose mouse control. It may even be the case that i need to lock the mouse to the swap chain panel.

I thought CoreIndependentInputSource.SetPointerCapture() would do the trick, but no. And i don't see any way to set the mouse position manually.


Does anyone have experience with this ?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement