|
-
May 24th, 2009, 10:18 AM
#1
Thread Starter
New Member
Mouse Movement Problems
I Am Using VB.NET 2008 Express Edition, and am trying to make a program that controls the mouse position with a joystick on the a nintendo classic controller, which returns a value between [ -.54 ] and [ +.54 ].
I wanted so that the position vertically of the mouse on the screen = vertical position on the screen + (joystickvalue * 100)
I have searched many forums and still can not find an answer on how to set the cursor position.
i have found e.location.x that says it is a reador wright variable, but when i set it equal to a number i get an error saying
"Expression is a value and therefore cannot be the target of an assignment."
Any Help Is Greatly Appreciated
Thanks
~Matt
-
May 24th, 2009, 12:41 PM
#2
Re: Mouse Movement Problems
Use this
Code:
Cursor.Position = New Point(10, 10)
Just replace the 10s with your joystick formula.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|