Improved trigger response

 

In many BASIC programs, especially games with long main loops, the user could press the joystick button so fast that the program misses it completely. There is a way to have the computer „remember“ when the button is pressed, even after it is released. When the program finally gets around to checking the button’s status, it seems as if it’s still pressed. The key is the following command:

POKE 53277,4

Use this command before you start executing your main loop (that is, just once before the loop is entered). Then, after you have detected a button press and reacted to it, you will need to use this command again to clear the button. If you are using Player/Missile Graphics in your program, change the 4 to a 7.