CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009
    Posts
    2

    Moving Cursor in DirectX Games

    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

  2. #2
    Join Date
    Dec 2009
    Posts
    2

    Re: Moving Cursor in DirectX Games

    Anything guys...?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured