delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/27/17:40:45

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: That Pesky Little Mouse...
Date: Sat, 27 Feb 1999 18:27:09 -0400
Organization: BrunNet
Lines: 33
Message-ID: <36D8713D.BC5BF3C8@unb.ca>
References: <36D1DFE1 DOT 69311E68 AT geocities DOT com>
NNTP-Posting-Host: ftnts4c61.brunnet.net
Mime-Version: 1.0
X-Mailer: Mozilla 4.04 [en] (Win95; U)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

The Beyonder wrote:

> I'm trying to Wire in a mouse for my game (haven't we all tried this?),
> I'm using a book called "PC Game Programming Scroller" BY Dave Roberts.
> I know that the book is sorta outdated and is for Borland C, but its
> proven ok so far...  My problems come with the section about Event
> Handled mice...   The Normal (non-evented) mouse works fine, but
> obviously doesn't suit the purposes.  So I took a dive and tried for
> Event-Driven.
>
> THe function header is:
>
> static void far _loadds _saveregs MouseEventQueueHandler( void );
>
> but when you compile it is says that a parce error occured on this
> line.  I already know that static, void and far are ANSI C but _loadds
> and _saveregs???

    Well "far" is NOT ansi C.  An example of how to hook the mouse is shown in
the FAQ Section "18.8 How to make DOS/BIOS call your function"

> Also in the function there are _?X (AX,BX,CX,DX).  Does DJGPP define
> these?

    No.  Because of the way DJGPP optimizes, these are not available, but are
also not needed.--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlisnis AT BrunNet DOT Net
          Endlisnis AT HotMail DOT com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019