From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: [Q] mouse under DJGPP Date: Fri, 20 Dec 1996 12:36:34 +0100 Organization: TU Chemnitz-Zwickau Lines: 35 Message-ID: <32BA7A42.24E2@Mathematik.tu-chemnitz.de> References: <01bbee00$9e9eab70$65216dc2 AT parkview> NNTP-Posting-Host: daemon.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Yeep DJ-Gateway: from newsgroup comp.os.msdos.djgpp Yeep wrote: > > I want to use the mouse in a program. > So I would use Int 33h. > But this is a real mode interrupt and if I use it with __dpmi_int__ it > would make my program *very* slow (at least accoring to various FAQ's). At first I cannot say, that accessing the mouse via int 0x33 makes your program very slow at least for a program, which uses the mouse for the normal use in a text system. May be it makes your program slow if you need the mouse for a game or something like that, but I don't know because never tried. I you need every event from the mouse, when it occours, you should install your own mouse-handler and give the address of that function to the mouse driver with the "install user handler" function. WARNING: For doing the above you should read carefully all the docs and FAQ's about writing code, which can be called from real mode interrupts. That's not quiet simple (You have to look ALL the code AND DATA which can be modified or accessed by your handler). If you want to see how I did it, get the sources of RHIDE and look in the files 'tevent.cc' and 'thwmouse.cc' in the directory 'contrib/rhide-1.0/src/tvision/classes/t'. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************