Tag Archives: track mouse

Make silly eyes that track the mouse without flicker in C#

The example Make silly eyes that track the mouse in C# shows how to make eyes track the mouse position, but if you look closely as that program runs you will see a noticeable flicker. The solution is quite simple: … Continue reading

Posted in games, geometry, graphics | Tagged , , , , , , , , , , , , | 1 Comment

Make silly eyes that track the mouse in C#

This example uses a Timer named tmrTick to track the mouse. Its Tick event handler, which is shown in the following code, updates the eyes. // The previous mouse location. private Point OldMousePos = new Point(-1, -1); // See if … Continue reading

Posted in games, geometry, graphics | Tagged , , , , , , , , , , , , | 2 Comments

Make a robot arm track the mouse in C#

This example makes a robot arm track the mouse position. If you hold the left mouse button down and move the mouse, the arm moves so the wrist is at the mouse position, if that is possible. See the post … Continue reading

Posted in algorithms, drawing, graphics | Tagged , , , , , , , , , , , , | Leave a comment