From: gustavo AT petra DOT euitio DOT uniovi DOT es (Gustavo Alejandro Rodriguez Garcia) Newsgroups: comp.os.msdos.djgpp Subject: MOUSE HANDLER Date: 10 Feb 1999 12:55:48 GMT Organization: Universidad de Oviedo Lines: 45 Message-ID: <79rvkk$59m$1@sci.cpd.uniovi.es> NNTP-Posting-Host: petra.euitio.uniovi.es Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sci.cpd.uniovi.es 918651348 5430 156.35.81.1 (10 Feb 1999 12:55:48 GMT) X-Complaints-To: abuse AT si DOT uniovi DOT es NNTP-Posting-Date: 10 Feb 1999 12:55:48 GMT 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 hi! I have one problem. I wanto use the mouse into my program, but with djgpp i don't know how to Set the handler that say to me the event what has happen See: 1) .....with Borland TC 3.0 regs.x.ax = 0xc; regs.x.bx = event; (integer) regs.x.dx = FP_OFF(handler); // This is mi problem. DJGPP don't have sregs.x.es = FP_SEG(handler); // FP_OFF and FP_seg int86x(0x33, ®s, ®s, &sregs); ........ handler --> function pointer.... How can i do it with DJGPP???? 2) with Borland TC, i can see the registers with _AX, _BX, _CX ..... example: ....... int86x(0x33, ®s, ®s, &sregs); result = _AX; ...... How can i do it with DJGPP???? Excuse my English!!!!! Thanx in advance. ---------------------------------------- Un saludo: | Si el problema que te preocupa tiene Gustavo A. Rodriguez Garcia | solucion. Por que te preocupas? e-mail: gustavo AT petra DOT euitio DOT uniovi DOT es | Y si no la tiene, Por que te preocupas? --------------------------------------- Universidad de Oviedo - Asturias - SPAIN -----------------------------------------