From: wajnberg AT antibes DOT inra DOT fr (Eric Wajnberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: Using the mouse Date: Thu, 3 Apr 2003 11:45:37 +0000 (UTC) Organization: I.N.R.A. Antibes (France) - Ecologie des Parasitoides Lines: 39 Message-ID: References: NNTP-Posting-Host: antibes.inra.fr X-Trace: saphir.jouy.inra.fr 1049370337 6111 195.221.33.1 (3 Apr 2003 11:45:37 GMT) X-Complaints-To: usenet AT news DOT inra DOT fr NNTP-Posting-Date: Thu, 3 Apr 2003 11:45:37 +0000 (UTC) X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ben Peddell (lightspeed85 AT hotmail DOT com) wrote: : Eric Wajnberg wrote in message : news:b6e7d6$o6b$1 AT saphir DOT jouy DOT inra DOT fr... : > Dear all, : > : > I need your help with DJGPP. I am currently developing a C code, and, in : it, I : > need to know the location of the mouse, and if the left button is pressed : or : > not. That's all! : > : > I am sure that this can be coded in a couple of lines only. Can somone : help : > me? : > : > Best, Eric. : > : If you can, you should try to determine whether interrupt 0x33 has been : initialized. An un-initialized int 0x33 will lead to problems (Page Faults, : GPFs, etc) when you try to call it. : These functions are just as an example. They would be better as assembly : functions (in an S file). : [ stuff deleted.. ] : There are further functions that you can call. They are shown in Ralf : Brown's Interrupt List. Thank you! The functions you gave me are working nicely and efficiently. This is exactly what I needed. Thanks again. Eric.