From: "Chris A. Triebel" Newsgroups: comp.os.msdos.djgpp Subject: Re: Need Shawn's (or anybody's) advice on making joystick buffer... Date: Mon, 12 May 1997 14:52:40 -0400 Organization: University of New Hampshire - Durham, NH Lines: 31 Message-ID: References: <5l2ano$3cv2 AT elmo DOT cadvision DOT com> NNTP-Posting-Host: sun4.iol.unh.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <5l2ano$3cv2@elmo.cadvision.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On 10 May 1997, Calvin French wrote: > Date: 10 MAY 1997 17:19:52 GMT > From: Calvin French > Newgroups: comp.os.msdos.djgpp > Subject: Re: Need Shawn's (or anybody's) advice on making joystick buffer... > > What can I say? Holy moly! :-) And I couldn't get past the fourth beer > at the Millenial Fair in Chrono Trigger. I'll try and poll about 60 > times per second, then... I just hope I don't get into reentrancy at > that rate. It's possible that you could solve this problem by using a flag which when set does not allow you to re-enter the function. Say something like this ... static int flag=0; void stick(void) { if(flag) return; else { flag=1; do_stuff_here flag=0; return; } } cat