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 ?