I am trying to program a mouse into my program. My mouse function stores all of the pixels under the cursor into a matrix called umouse. It then draws the cursor. Whenever the mouse moves, the mouse is erased using the umouse data, then umouse stores the new data while the cursor is being drawn.
Only one problem...
Whenever some other object moves over the mouse, i.e. a moving colored tile moves over the cursor, when the cursor moves, it deletes part of the other object (colored tile) and replaces it with the umouse data.
How can I make a decent mouse function that doesn't change any other part of the screen?
I am using Turbo C++ 1.00