Skip to navigation

Aviator on the BBC Micro

Keyboard: keyTable1

Name: keyTable1 [Show more] Type: Variable Category: Keyboard Summary: Internal key numbers of high priority keys that are scanned first Deep dive: The key logger
Context: See this variable in context in the source code References: This variable is used as follows: * UpdateKeyLogger uses keyTable1

Keys in this table are scanned first. If pressed, the corresponding value in the key logger is set to the 16-bit value, with the high byte coming from keyTable1Hi and the low byte from keyTable1Lo. If the key in keyTable1 is not being pressed, we then check the corresponding key in keyTable2. This contains the other key in this key pair, which is normally the opposite key, e.g. up vs down, left vs right and so on.
.keyTable1 EQUB &A9 \ L Elevator (stick forwards, dive) EQUB &BE \ A Left rudder EQUB &AE \ S Aileron (joystick left, bank left) EQUB &DE \ W Decrease throttle EQUB &CA \ U Undercarriage up/down EQUB &BC \ F Flaps on/off