Mail Archives: djgpp/1999/02/24/11:35:59
Airhead Zoom wrote:
>
> Hello everybody.
>
> I've had the same problem and solved it in the same way a few years ago, but
> discovered that the mouse pointer 'skipped' pixels.
> I mean by this, that when I moved the mouse ONE pixel, the mouse cursor moved
> TWO pixels. This was only in the X-direction, not the Y-direction.
> It could be a software problem (it was one of my first programs), but I'm not
> sure.
> Does anyone know how to solve this problem?
Easy!! :)
There are 2 functions of the mouse driver you can use to set the max X
and max Y coordonates.
You just have to set them to SCREENX and SCREENY
(and even more SCREENX*w SCREENY*z and devide the return X and Y by w
and z.)
> I sure hope there's a better way than just reading the ports, because that
> really is no fun!
> (I just used interrupts)
>
> Greetz,
>
> Airhead Zoom of Dancing Pumpkin Productions
--
^ ^ ^
| | |
+-+-+ Fabrice ILPONSE
| email: fabrice AT asim DOT lip6 DOT fr
|
|
-
- Raw text -