A few months ago, I used C # to create an application that reads wii nunchuck and moves the mouse. My first option was to use a class cursor to move the mouse, like this
Cursor.Position = new Point(Cursor.Position.X + 10, Cursor.Position.Y + 10);
Everything was fine, but it didnβt work when playing games, because they control the mouse differently, so in the end I used the Global Hooks that Kirtan mentioned here (+1). Based on my experience, I recommend you use Global Hooks.
source share