Name:KYTB[View in context] Type:Variable Category:Keyboard Summary:Lookup table for in-flight keyboard controls Deep dive:The key logger
Keyboard table for in-flight controls. This table contains the internal key
codes for the flight keys (see p.142 of the Advanced User Guide for a list of
internal key numbers).
The pitch, roll, speed and laser keys (i.e. the seven primary flight
control keys) have bit 7 set, so they have 128 added to their internal
values. This doesn't appear to be used anywhere.
Note that KYTB actually points to the byte before the start of the table, so
the offset of the first key value is 1 (i.e. KYTB+1), not 0.
KYTB=P% - 1\ Point KYTB to the byte before the start of the table\ These are the primary flight controls (pitch, roll,\ speed and lasers):EQUB&68+128\ ? KYTB+1 Slow downEQUB&62+128\ Space KYTB+2 Speed upEQUB&66+128\ < KYTB+3 Roll leftEQUB&67+128\ > KYTB+4 Roll rightEQUB&42+128\ X KYTB+5 Pitch upEQUB&51+128\ S KYTB+6 Pitch downEQUB&41+128\ A KYTB+7 Fire lasers\ These are the secondary flight controls:EQUB&60\ Tab KYTB+8 Energy bombEQUB&70\ Escape KYTB+9 Launch escape podEQUB&23\ T KYTB+10 Arm missileEQUB&35\ U KYTB+11 Unarm missileEQUB&65\ M KYTB+12 Fire missileEQUB&22\ E KYTB+13 E.C.M.EQUB&45\ J KYTB+14 In-system jumpEQUB&52\ C KYTB+15 Docking computer