I have no idea where to ask this (on the internet) so please bear with me. I am looking for a program that will stop the mouse from moving along one axis. An example of this is in a paint program if you hold shift down it will draw a straight line in one direction. I am looking for this effect but with the mouse, not letting it move outside of one axis regardless of user control (moving diagonal will keep it just in the one selected plane). Preferably with a toggle button to turn on/off. I have downloaded some software from download.com but none of them have this feature. I even took an old mouse and broke one of the rollers but the ball doesn't move as freely without the roller and it's hard to control the speed. If anyone knows of any program please share.

P.S.: I am also a programmer although I would consider myself a novice windows one (mostly did console stuff). If there are any good articles/tutorials on this subject you can post them here too. Thanks.