From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro question regarding .exe size Date: Tue, 27 May 1997 19:20:24 +0100 Organization: None Distribution: world Message-ID: References: <3388b9c1 DOT 30672726 AT news DOT cis DOT yale DOT edu> <5mai81$pne AT news DOT ox DOT ac DOT uk> <338a284f DOT 7880730 AT news DOT cis DOT yale DOT edu> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk jon writes: >No, jlib doesn't directly do this strange mouse thing I want either, >AFAIK. I will experiment with the code and advice you've offered. I was experimenting with this yesterday evening, and it turns out to be really trivial! This little function will return how far the mouse has moved since the last time you called it... #include /* get_mouse_mickeys: * Measures the mickey count (how far the mouse has moved since the * last call to this function). */ void get_mouse_mickeys(int *mickeyx, int *mickeyy) { __dpmi_regs r; r.x.ax = 11; __dpmi_int(0x33, &r); *mickeyx = (signed short)r.x.cx; *mickeyy = (signed short)r.x.dx; } -- 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.