Joysticks - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

CHR$
Character
Printer
U.K. U.S.A.
France Germany
Spain
On Screen Translation
&AO
A
&5E
A
A
A
A
A
&A2
..
&7B
t
t
t
t
..
&A3
£
&23
£
#
#
#
Pt
&A6
§
&40
t
t
t
§
t
&AE
(.
&5D
t
t
t
t
(.
&AF
I
&5B
t
t
t
t
I
t
For the printed character, refer to your printer instruction manual.
The above is an extract from the default translations, which can be changed if
required. See the Firmware manual (SOFT 968) for further details.
Part 11 : Joysticks
The built-in software in the computer supports either one or two joysticks. These are
treated as part of the keyboard, and as such, may be interrogated by INK E Y and
INKEY$.
Note that in the majority of cases, the main 'fire' button on ajoystick is interpreted as
'Fire 2' by the 6128.
The functions JOY (
Ql)
and JOY (
1 )
enable direct inspection of the first and second
joysticks repectively. The function returns a bit-significant result which indicates
the state of the joystick switches at the last keyboard scan.
The table below indicates the values returned by both joysticks. The JOY values are
followed by values for use in statements which take key numbers as parameters (i.e.
INK E Y and KEY
D
E
F).
STATUS
JOYCOMMAND
KEY VALUES
BIT
VALUE
FIRST
SECOND
EQUIVALENT
SET
RETURNED JOYSTICK
JOYSTICK
KEY
Up
0
1
72
48
'6'
Down
1
2
73
49
'5'
Left
2
4
74
50
'R'
Right
3
8
75
51
'T'
Fire 2
4
16
76
52
'G'
Fire 1
5
32
77
53
'F'
For your reference ....
Chapter 7 Page 43

Advertisement

Table of Contents
loading

Table of Contents

Save PDF