Board index » delphi » Problem with my SVGA mouse driver !

Problem with my SVGA mouse driver !

Hello, I have a problem with my mouse !

I want to no, how you show the mousecursor on a SVGA screen with 256
colors.
I read something about it, I try everything, but it don't work !
Can you help me with my problem ?

Arjan,

 

Re:Problem with my SVGA mouse driver !


On 6 Feb 1998, A. Bomhof wrote:

Quote
> Hello, I have a problem with my mouse !

> I want to no, how you show the mousecursor on a SVGA screen with 256
> colors.
> I read something about it, I try everything, but it don't work !
> Can you help me with my problem ?

> Arjan,

Hello, I have had some experience with this sort of problems (I'm
currently writing my own application system in VESA).  I hope you know
how to talk to the mousedriver.
There are 2 options : (1) you completely write your own mousedriver,
debug it, test it, debug it again and finally use it.  Or (2), you can
use the mousedriver that already resides in memory (e.g. MOUSE820.COM
from MicroSoft, the big ugly company).  I chose for option (2) because it
saved me a lot of work.  I you try to call the mousedriver and instruct
it to display the mousecursor (INT 33, AX=??? refer to manual because I
don't know the registers out of my head) and this works, then your fine.  
If however you are not using a 'standard displaymode' you will have to
adopt another approach : write a custom mousehandler and hook it up to
the normal mousehandler.  What you do is you define an interrupthandler
that restores the background and redraws the mousecursor.  This way, you
can create a 256-color (heck, even a 24-bit) mousecursor.  Of course, you
will have to check whether or not the cursor is activated et cetera but
that is just a little puzzling.  I myself used another technique : I hook
my handler up to the COM1-port interrupt itself and by doing so I can
draw the mousecursor and check its position and buttonstate in only 1
interrupt.  I will send you the code for it (UMOUSE.PAS) if you want to
take a look at it.

Sven Maerivoet (Antwerpen, Belgium)
e-mail : s945...@zorro.ruca.ua.ac.be

Re:Problem with my SVGA mouse driver !


Quote
>Hello, I have a problem with my mouse !

>I want to no, how you show the mousecursor on a SVGA screen with 256
>colors.
>I read something about it, I try everything, but it don't work !
>Can you help me with my problem ?

See my HP. There's a fast Vesa-unit (uses also Hardware acceleration)
which is almost compatible with BGI.
Download the grafx1.3 preview. It contains some bugs with this
HW-Acceleration yet (on Cirrus cards) and has at the moment some
problems with PM but the first bug is already fixed and the second
will be fixed in some days.
The Zipfile includes some fonts, the mouseunit, a loader for
png, pcx/bmp and a demoprogram.

Bye,
Stefan
---
please remove the P in my email-adress to answer me
take a look @ my homepage: http://www.geocities.com/SiliconValley/Bay/9553
directly to the german part: http://www.sourcenet.home.pages.de/

Other Threads