I am using the Wiimote and the .NET Wiimote lib to control a game (Borderlands specifically). I have all the controls worked out accept the Aiming (what the cursor is used for).

I have tried the following code without success:

[DllImport("User32.Dll")]
        public static extern long SetCursorPos(int x, int y);

and

Cursor.Position = new Point(positionX, positionY);

Neither seem to have any effect. I researched trying to emulate Joystick movement but I could not find anything about it.

Any help would be greatly appreciated. Thanks :)

Anything guys...?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.