Mail Archives: djgpp/1997/01/26/05:14:51
On Mon, 20 Jan 1997 12:58:23 GMT, root <root AT capslock DOT com> wrote:
>Blit your own mouse pointer onto the screen. Read the mouse co-ords,
>multiply by 10, then blit your pointer. You might want to lower the mouse
>sensitivity or threshold first so that the mouse doesn't wizz off the
>screen now though.
One way to do this that won't change the speed of your mouse is to:
1) Decide how many blocks you want horizontally and vertically.
2) Read the mouse coords, modulo the number from step one.
This will give you the block number to use. Do this for both the horizontal
and vertical.
3) Multiply the block number by the pixel size of the block. This will give you
the pixel offset to display the block. Do this for the horizontal and the
vertical.
- Raw text -