Creating a Joystick Control

Hello, this project is a joystick control used with a mouse that I had to createas one of my assignments from school. Basically, this is a control that works like a joystick, except with a mouse. Clicking and dragging the mouse inside the control updates the compass direction of the joystick, the magnitude (distance from the center), and the cursor location point. clicking the right mouse button while holding down the left mouse button and moving themouse causes the joystick to 'lock' in that position. Attributes have been used to makethis control's appearance customizable, and easy to use. Just hook up a method to be called to the Position delegate, so that during each joystick movement some object couldmove. I've included an example and the control.

Download source

Twitter Digg Delicious Stumbleupon Technorati Facebook Email

No comments yet... Be the first to leave a reply!