Path: news.cs.au.dk!not-for-mail From: Erik Corry Newsgroups: comp.lang.beta Subject: Re: tron - X11 multi-player game (Long) Date: 6 Apr 2000 13:02:41 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 31 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <20000406130241.16591.qmail@noatun.mjolner.dk> Reply-To: Erik Corry NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 955026176 14792979 255.255.255.255 (6 Apr 2000 13:02:56 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 6 Apr 2000 13:02:56 GMT Xref: news.cs.au.dk comp.lang.beta:12289 Hi Alf-Ivar Holm, > > There was a problem in that if you held the turn keys down, the autorepeat > > would make you go around in circles and crash into yourself. > > Yes, I knew about that one, but considered it a feature. :-) > (If you drive your bike and then violently steer left for some time, > some things are bound to go - boom.) OK, but the feature of being able to fly by holding down space isn't that realistic :-) > > This unfortunately needs a patch to xtenvbody.bet in order to > > switch on detectable autorepeats. X11 added this feature in > > X11R6, though they still default to the old broken behaviour > > of synthesising KeyRelease events when autorepeating. Should > > be harmless on old servers that don't support it. > > So, the patch will only work on X11R6. Right? Yes. I think that is what most people are using now. The only way to do it on older X11 versions would be to switch off auto- repeat alltogether when you get focus and switch it on again when you lose it. Unfortunately that isn't very user friendly if the game is suddenly disconnected from the X server, either by a communiations failure or by the user/window manager cutting the connection. Then autorepeat would be left off, and the user has to work out how to reactivate it. -- Erik Corry