3 Joystick and Buzz
David Schmenk edited this page 2018-02-23 17:22:00 -08:00

Read both axes of the joystick and simultaneously buzz the speaker. This runs in constant time, avoiding the crosstalk from the built-in paddle routines. And you can make different tones while doing so. It returns the x and y positions and two button states.

Compatibility: II

Usage: include "inc/joybuzz.plh"

Values:

const MAX_JOY = 79 // Maximum axis value

Function:

joypos(buzz)#4

Source Code: joybuzz.pla