Click to See Complete Forum and Search --> : Moving Cursor in DirectX Games


zone117x
December 5th, 2009, 09:45 PM
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 :)

zone117x
December 6th, 2009, 11:35 AM
Anything guys...?