From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: mouse handler installation Date: Sun, 3 Aug 1997 16:21:46 +0100 Organization: None Distribution: world Message-ID: References: <5s22bl$sbk AT news01 DOT uni-trier DOT de> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hans-Joerg Frieden writes: >I'm trying to install a mouse event handler with djgpp v2, but it does not >seem to work. I tried the example in the faq (18.8), but I guess there's >something missing. I added two lines > r.x.dx = callback_info.rm_offest; > r.x.es = callback_info.rm_segment; >before the __dpmi_int call, but it still will not call my mouse handler at >all. You are calling the int 0x33, ax=0x0C function, right? What value do you put in %cx? This is a bitmask indicating which conditions should trigger your handler, so if it is zero your routine will never be called. For a working example of a djgpp mouse handler, see the file mouse.c from Allegro... -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ Beauty is a French phonetic corruption of a short cloth neck ornament.