Changes

Programming:Keyboard scanning

5 bytes removed, 8 June
/* Developing programs that use joystick */
* '''Q,A,O,P,SPACE''' - (Q up, A down, O left, P right, SPACE fire) This is a good solution, and it's a sort of standard (used by many games). It is best for english QWERTY keyboards, on french AZERTY it'd be A-Q-O-P (but because the decoding of the keys is done in software, normally by the OS, the bits in the keyboard matrix are actually the same).
The standard CPC has only 1 physical joystick port. But it was also possible to daisy chain the official Amstrad joysticks. And a common accessory, the joystick port doubler, offered 2 joystick ports.
The CPC+ and GX4000 have 2 joystick ports built-in.
8,337
edits