I am trying to programmatically move the pointer position on a UWP app running on an Raspberry Pi 3. When I run the app on my Local Machine, the line:
Window.Current.CoreWindow.PointerPosition = new Point(512, 384);
works as expected.
When I deploy the app to the Pi 3, the above code has no effect at all. Is there another way I should be doing this? My end goal is to use Mouse movements in the X direction as input to a tuning function. I need to be able to indefinitely detect motion in the X direction. The way I am trying to do it now is to use the PointerMoved event. The problem with this is that when the pointer hits the left or right boundary of the window it no longer fires the event if I continue moving the mouse in that direction. My simple solution was to programmatically center the cursor if it hits the boundary. As I said this works fine on my Local PC, but does not work on the Raspberry Pi.