Mail Archives: djgpp/1999/02/27/17:40:45
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 -