== Developing programs that use joystick Keyboard clash ==
In This is the CPC world it is more common that name of the phenomenon when a game supports both keyboard and digital joystick for those users who don't own joysticks.In addition, it "ghost" or "phantom" key is also nice if the generated when you press some combinations of keys could be redefined but that is not necessary.
There are some common keyboard configurations usedFor example, pressing Q,A,P will also generate :.
* The ':''Cursor keys & SPACE''' - This configuration key is often used and is great for the CPC6128 and Plus and playing using emulators"ghost" key. This is '''not''' good for CPC 464 and 664 (which have uncomfortably arranged cursor keys)
* '''Q,A,O,P,SPACE''' - (Q up, A down, O left, P right, SPACE fire) This The problem is a good solution, and it's a sort of standard (used by many much bigger in 2 player games). It is best for english QWERTY keyboards, on french AZERTY it'd be A-Q-O-P (but possible to avoid or minimise the problem by carefully choosing the controls. The problem also occurs when using joysticks because the decoding these are part of the keys is done keyboard matrix. If you visualize a rectangle in software, normally by the OSkeyboard matrix above, where 3 of the bits corners are 3 keys you have pressed. Then the key in the keyboard matrix are actually fourth corner will also be pressed this is the same)"ghost" key.
== One line scanning routine ==