Changes

Jump to: navigation, search

Programming:Keyboard scanning

305 bytes added, 7 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 a common accessory, the joystick port doubler, offered 2 joystick ports. It was also possible to daisy chain the official Amstrad joysticks.
 
The CPC+ and GX4000 have 2 joystick ports built-in.
 
See the relevant cpcwiki page: [[Digital Joysticks]]
[[Category:Programming]][[Category:CPC Internal Components]]
5,298
edits