Coder's Guild Mailing List

Re: VESA mouse

Posted by Jaz on 1998-02-02

>> Does one of you know where I can get a mouse unit
>> for VESA modes that works with Turbo Pascal and
>> has more functions than just draw, hide, x, y and
>> clicked (I can do these by myself)? I mean changing
>> the cursor mask, LastPressed, LastReleased functions
>> and so on?
>>
>> Jaz

>I have a mouse unit on my webpage: http://fantom.home.ml.org however
>its very simple to make your own, i just used assembler for all my
>proceudres/functions using int 33h -- if you know asm check it out in
>ralph browns interrupt list (you can also get that on my webpage)

>
>ttyl,
>FaNt0m
>fant0m@xxxxxxxxxx.xxx

Well I already have my 33h mouse unit, even I could
write it (I hardly know any assembler at all).

My problem is that 33h calls don't work at
VESA modes like 640*480*256 or 800*600*16. Try it
out, your mouse will move like in text mode
if you use your 33h procedures in VESA modes
(it jumps in 8*8 pixel cells!).

If you want to use your mouse in VESA modes you
will have to write an own mouse handler, which
means that you have to write an own 33h Interrupt!
You write a procedure that handles everything
and then punch it into the 33h interrupt
(with "SetIntVect" as I remember). Now your
procedure is called everytime your mouse has an
event (moved, clicked, ..).

I already managed it to replace the 33h procedures
mouse.x, mouse.y, and mouse.clicked (this was
HARD work for me, knowing nearly nothing about
computer hardware!) but I need procedures like
LastRelease, Sensitivity control, etc.

Thanks anyway.

Jaz

--- luna.kil@xxxxxxx.xxx
=== member of the Coder's Guild:
--- http://www.paracatz.com/codersguild/