ARTICLE

Custom Mouse-Joystick in C#

Posted by Lance Drolet Articles | Windows Forms C# June 10, 2005
It is a custom control that allows you to use your mouse as a joystick.
Reader Level:
Download Files:
 

This is another school project. It is a custom control that allows you to use your mouse as a joystick. It's features are:
 
MouseMoved event returns a custom EventArgs object containing 0 to 15 units of movement from the center of the control, and the polar direction (North, Southeast, etc...).
 
Configurable color, diameter, line-width, and line-end shape.
 
Enclosed are the source code for the control, and for the demonstration application.

mousestick.gif 

COMMENT USING