mirror of https://github.com/dschmenk/PLASMA.git
Page:
Joystick and Buzz
Pages
CATalog files
COPY files
Chat Client Server
Command Line Argument Parsing
Console I O
DELete fles
Double Lo Res Graphics
Double Lo Res Test
Fiber Threads
File I O
Game Port SPI I O
Game Port SPI SD FAT
Game Port Wiring
HTTP Server
Hello World
Hi Res Graphics
Hi Res Test
Home
Installation Guide
Joystick and Buzz
Lo Res Graphics Library
Long Jump
Memory Manager
Music Player
Music Sequencer
NEWDIR
Network I O
PLASM compiler
PLASMA Byte Codes
PLASMA JIT Compiler Implementation
Porting Guide
REName files
ROGUE
RPN Calculator
Rod's Colors
SANE Floating Point
Sieve
System Library
TYPE file
Trivial FTP Daemon
Variable assignment and addressing explained
ZIPCHIP
Zero Page Usage (Apple IIe 64K )
code text Editor
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