I am trying to set the position of the mouse cursor (so I can lock it in the center of the screen for the fps I am making) and can not figure out a way to do this.
I need to set the cursor in the middle of the screen each frame so I can make the games camera handle correctly (typical FPS camera) and without a mouse.setposition equivalent this cannot be done to my knowledge.
I am writing my program in c#, for the windows 8 store.
I have already tried:
[DllImport("user32.dll")]
static extern bool SetCursorPos(int X, int Y);
I just spoke to some Microsoft people, it isn’t doable at the moment and they hope to add in the next api release.