Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!bu.edu!bass.bu.edu!beh From: beh@bass.bu.edu (Bruce E. Howells) Newsgroups: comp.sys.apple2 Subject: Re: Help with joystick Message-ID: <72832@bu.edu.bu.edu> Date: 22 Jan 91 03:38:33 GMT References: <25823@fs1.NISC.SRI.COM> <36038@netnews.upenn.edu> <11374@darkstar.ucsc.edu> Sender: news@bu.edu.bu.edu Organization: Boston University Lines: 50 In article <11374@darkstar.ucsc.edu> unknown@ucscb.UCSC.EDU (The Unknown User) writes: > >In article <36038@netnews.upenn.edu> tyler@eniac.seas.upenn.edu (Tyler W Phillips) writes: >> I recently purchased a CH Mach III joystick because my old joystick >>had a problem of only registering in the top left eighth or so of the normal >>joystick spectrum. Well, it appears that it was not the joystick afterall >>because this brand new joystick is doing the same thing. Is there anything >>I can do about this, or am I condemned never to use a joystick. BTW, This >>is on a IIgs if that makes any difference. Any help would be appreciated. > > This is a very simplistic response, I realize.. but... > > You don't happen to be playing non GS specific games in FAST mode >on the GS? You have to re-center the joystick if you want to do this... >(then recenter it back when you play GS games) > > > For a simple joystick centering program, run this: > >10 ? PDL(0),PDL(1) >20 goto 10 > > And then you want to get both as close to 127 as possible w/the >joystick centered. >-- >/Apple II(GS) Forever! unknown@ucscb.ucsc.edu MAIL ME FOR INFO ABOUT CHEAP CDs\ >\WRITE TO ORIGIN ABOUT ULTIMA VI //e and IIGS! Mail me for addresses, & info. / Not quite... The problem with that is that the joystick timer can't reset properly between the first and second read, leaving the second one slightly wrong. A cleaner solution is: 10 ? pdl(0)," "; 20 for i = 1 to 5 30 next i 40 ? pdl(1) 50 for i = 1 to 5 60 next i 70 goto 10 [done from memory, and it's been WAY too long since I've done Applesoft, so if it's wrong my apologies, but the idea is there] For further info, see the Technical Reference Manual of your choice. Bruce Howells, beh@bu.edu