Message-ID: <3761912B.933595F8@geocities.com> From: Sahab Yazdani <beyonder69 AT geocities DOT com> Organization: MASC Productions X-Mailer: Mozilla 4.6 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Mice problems.. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 25 Date: Fri, 11 Jun 1999 18:43:55 -0400 NNTP-Posting-Host: 209.5.16.36 X-Complaints-To: abuse AT sprint DOT ca X-Trace: newscontent-02.sprint.ca 929141074 209.5.16.36 (Fri, 11 Jun 1999 18:44:34 EDT) NNTP-Posting-Date: Fri, 11 Jun 1999 18:44:34 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Wow.. I've come a long way since December, my programming skills have increased ten-fold. Yet still the pesky mouse avoids my trapping abilities.... I have written a mouse event handler library (in C++) to control the mouse. The weird thing is that the code seems to work (no GPFs) but it just doesn't do the write thing. It grabs some registers (AX, BX, CX, DX, SI, DI ) AX = Event Bit BX = Button (left, right, centre) CX = X coord; DX = Y coord; SI = x mickeys (even though I have no clue WTF this is) DI = y mickeys (same goes for this one) anyways it grabs em puts em in a structure and when I reference any of them they give the (I'm supposing) right values. Yet the X coord value is always a constant of 640!!! This makes it very wierd because the cursor goes up and down but it doesn't go left and right!! Anyways its screwed and any help would be greatly appreaciated... If you want the code please post back to the message, as I don't check my mail very often...