Take the touch without moving the mouse?

I am writing a joy pad emulator for my tablet for pleasure and for calling. I can press buttons drawn on my form and activate keystrokes in another form. The problem is that many games (I'm testing on minecraft) use mouse offsets to allow the player to look around the world. My problem is that when I touch the button, the mouse moves there, and the player in the game looks around wildly.

How can I accept touch input in C # using WPF without moving the mouse?

+5
source share
2 answers

I don’t think you can do what you want. The mouse and touch are connected by the OS, and you can do nothing to separate them from the application.

+1
source

The method used to collect the relative movement of the mouse sometimes consists in reading the position of the cursor and then resetting its position in the center of the screen, thereby giving you a relative moment. This method can be modified to suit your needs.

I found this on how to import a function to reposition the cursor: http://social.msdn.microsoft.com/forums/en-US/wpf/thread/6be8299a-9616-43f4-a72f-799da1193889/

, , , , reset , , .

+2

All Articles