Date: Sun, 8 Feb 1998 13:47:45 +0200 (IST) From: Eli Zaretskii To: Petr Stehlik , Paolo Piselli cc: djgpp AT delorie DOT com Subject: Re: Joystick Polling Woes. In-Reply-To: <6benpm$2ti$1@ns.felk.cvut.cz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 6 Feb 1998, Petr Stehlik wrote: > this is a routine written by myself some time ago for Atari800 emulator. It > works fine (if a joystick is connected ;-). > > int joystick0(int *x, int *y) This code uses CLI/STI instructions. I would like to point out that some DPMI servers (notably, Windows) trap these instructions and emulate them with code that takes eons to execute. And since CLI doesn't really disable interrupts in a multitasking environment, I would advise to remove these instruction in the DJGPP version.