EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #317 background imageLoading...
Page #317 background image
Chapter
10
I
BASIC
Keywords
STICK
Function
STICK
(action)
Returns the coordinates of the joysticks.
Action
may be one of the following:
0
1
2
3
reads all
4
coordinates, and returns the horizontal
(x)
coordinate for Joystick
A.
returns the vertical (y) coordinate for Joystick
A.
returns the horizontal
(x)
coordinate for Joystick
B.
returns the vertical (y) coordinate for Joystick
B.
The coordinates returned by STICK(l), STICK(2), and STICK(3)
are those previously read by STICK(0).
Joystick
A
is
the left joystick and Joystick
B
is
the
right joystick.
Sample
Program
The following program continually displays the coordinates of
joystick
B.
10 CLS
20 LOCATE 1
,I
25 T=STICK<0)
30
PR
I
NT"B:
";
STI
CK(2)
4
0
P
R
I
NT"B
:
"
;
ST
I
C
K
(
3
1
50 GOT0 20
315

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals