1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-06-26 06:29:28 +00:00

Created Joystick and Buzz (markdown)

David Schmenk 2018-02-23 17:19:01 -08:00
parent 085c22a56a
commit 434dff3847

12
Joystick-and-Buzz.md Normal file

@ -0,0 +1,12 @@
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`](https://github.com/dschmenk/PLASMA/blob/master/src/inc/joybuzz.plh)
**Function:**
```
joypos(buzz)#4
```
**Source Code:** [`joybuzz.pla`](https://github.com/dschmenk/PLASMA/blob/master/src/libsrc/apple/joybuzz.pla)