CompuServe Messages

LONG JOYSTICK CABLE

    22-Dec-91 22:58:04
Fm: Jon Bojicic 71460,2023
To: Alex Baker 75606,563
Alex, Thanx for replying. I have tried the 100' cable, and it works OK. There's another problem, though, that seems to be aggravated by the long cable. I'm not actually, using a joystick, but rather 5 independent buttons. I want to be able to read the state of all the buttons at any time. The "legal" routines don't allow this, so you have to read the registers. Problem is to read LEFT, you check Bit #1. To read UP, you EOR Bit#1 with Bit#9. If the result is true.. stick is up. Trouble is, if Bit#9 is FALSE, and Bit#1 is TRUE, this condittion could mean that either UP, or LEFT, or both are pressed. Using a joystick, it happens at random, more on some computers than others. Using the 100' cable makes it happen more often. "IT" refers to the fact that sometimes, at random, when you hit the LEFT joystick, the computer says the UP has been hit. Any ideas? (I've tried this on different machines, with different joysticks. The frequency of occurrence varies). Oh, and if I reverse the order of the program statements, so that I check UP, before checking LEFT, the computer tells me (sometimes) that BOTH UP and LEFT are being pressed. Incidently, the same thing happens, though less frequently, with DOWN & RIGHT. Different bits are involved, but the principle is the same. Any help would be appreciated, this has been confounding me for quite a while now :^( Jon