Re: Avoiding erase the mouse cursor
- Posted by Jacques Deschenes <desja at GLOBETROTTER.QC.CA> Jul 31, 1997
- 820 views
At 14:33 31-07-97 -0300, you wrote: >---------------------- Information from the mail header ----------------------- >Sender: Euphoria Programming for MS-DOS <EUPHORIA at >MIAMIU.ACS.MUOHIO.EDU> >Poster: Ricardo Niederberger Cabral <rnc at INFOLINK.COM.BR> >Subject: Re: Avoiding erase the mouse cursor >------------------------------------------------------------------------------- > >>The only way I can see you could acomplish this is to write a >>interrrupt handler that's activated each time you access video >>memory. This is a complex thing, and has two withdraws: >>1.- Uses memory resources >>2.- Slows down video memory access >>In conclusion: The best choice is to >>mouse_pointer(0)/mouse_pointer(1) each time you write to videoMem. >>This is quite fast (just a INT call). > >The problem is: I can't simply disappear the mouse while some sprites are >running around the screen, that would look very strange in a game like >Warcraft, imagine that every time you move an unit and while it's walking >the mouse is hidden or blinking... >I need a method to avoid a sprite drawing over the mouse pointer. > >--- >Ricardo Niederberger Cabral >rnc at infolink.com.br > > Check for overlapping between mouse cursor and the current sprite to draw and only hide the mouse cursor if the sprite overlap it. Yearlier somenone ask where the mouse cursor is coming from. The mouse cursor is manage by the mouse driver itself (mouse.com or mouse.sys) and the programming interface to this driver is interrupt #33 Jacques Deschenes Baie-Comeau, Quebec Canada desja at globetrotter.qc.ca