Changes

Jump to: navigation, search

Digital Joysticks

1,483 bytes added, 19:03, 19 December 2010
[[Image:Joystick Competition PRO 5000 box front.jpg|50px|right]]
All Atari-compatible digital joysticks with ''Single Fire Button and Four Direction switches'' should be usually working with the CPC. For example, classic Competition Pro joysticksor the [[Konix Speedking]].
== Incompatible Standard Joysticks ==
== Y-Cable ==
 
[[Image:CPC Plus Joystick Port.gif|50px|right]]
The original CPC models have only one joystick port, but can be used with 2 joysticks when using a Y-cable:
* [[Joystick Y-cables]]
The CPC+/GX4000 have two digital joystick ports (which work equivalent to the an incompletely implemented Y-cablewith only 8 diodes - there are no diodes in the fire button lines, so fire buttons '''do not work properly''' with two players).
== Other hardware that can be connected to the CPC joystick port Joystick Related stuff... Sega Controllers... ==
The CPCs digital joystick port is occasionally also misused to connect other hardware, known examples are:Some Lightguns: (* [[GunstickDigital Joystick Related]], [[Loriciel Phaser (West Phaser)|West Phaser]]).Amstrad's Lightpen ([[Amstrad LP-1 light pen]]).And, various mouse interfaces ([[AMX Mouse]], [[Atari-ST mouse adapter]], [[dk'tronics Mouse Interface|Dk'tronics Mouse Interface]], [[CPC-Mousepack 2.0]], [[GEOS mouse|GEOS mouse]]).
On the original CPCs, the direction/button inputs can be reprogrammed as outputs (via PSG/PPI config). However, this will NOT work on the CPC+/GX4000's dual == Developing programs that use joystick ports - which include diodes (like normal joystick Y-cables).==
== Joystick Related stuffIn the CPC world it is more common that a game supports both digital joystick and keyboard for those users who don't own joysticks... Sega Controllers... ==
* [[Digital Joystick Related]]There are some common keyboard configurations used:
== Using * '''Cursor keys & SPACE''' ** This configuration is often used and is great for the Keyboard as Joystick Replacement ==CPC6128 and Plus and playing using emulators. ** This is '''not good''' for CPC 464 and 664 (which have uncomfortably arranged cursor keys)
Most games (should) also support keyboard controls for users who don't own joysticks. Most commonly used keys are:* '''Cursor keys & Q,A,O,P,SPACE''' - This is '''not''' good for CPC 464 and 664 (which have uncomfortably arranged cursor keys) (only the 6128 and CPC+ do have modern cursor keys; as do emulators with PC keyboards)* '''Qup,Adown,Oleft,Pright,SPACE''' - fire) ** This is a good solution, and it's sorts a sort of standard (used by many games). Best would ** Note: On french keyboards it'd be to implement both of the above solutions. Q-A-,Q,O-,P - anyways, the "UP" key is of course for always Row8.Bit3, no matter if it's locally called "Q" (english QWERTY keyboardskeyboard), on or "A" (french AZERTY keyboard). Best would be to support joysticks, plus the above two keyboard mappings. Best to support them all at once (without needing the user select which one to use). In addition, it'd is also nice if the keys could be redefined but that is not necessary. == Relevant locations in Keyboard Matrix == {|{{Prettytable|width: 700px; font-size: 2em;}}|''Direction''||''Joystick 1''||''Joystick 2''||''Cursor,Space''||''Q,A,O,P,Space''|-|Up ||Row9.Bit0 ||Row6.Bit0 (6) ||Row0.Bit0 ||Row8.Bit3 (Q)|-|Down ||Row9.Bit1 ||Row6.Bit1 (5) ||Row0.Bit2 ||Row8.Bit5 (A)|-|Left ||Row9.Bit2 ||Row6.Bit2 (R) ||Row1.Bit0 ||Row4.Bit2 (O)|-|Right ||Row9.Bit3 ||Row6.Bit3 (T) ||Row0.Bit1 ||Row3.Bit3 (P )|-|Fire2 ||Row9.Bit4 ||Row6.Bit4 (either wayG) ||Row5.Bit7 ||Row5.Bit7 (Space)|-|Fire1 (*) ||Row9.Bit5 ||Row6.Bit5 (F) ||(wherever) ||(wherever)|-|}(*) Mind that Fire1 isn't supported on normal 1-button joysticks. When using it, the bits in also provide an alternate key on the keyboard matrix are the same).
== Other game controller inputs ==
The CPC+/GX4000 additionaly have an [[Analog Joysticks|15pin Analog Joystick]] Port, and a [[Connector:Aux socket (CPC Plus only)|6pin Lightgun socket]] (AUX).
== Other hardware that can be connected to the CPC joystick port == The CPCs digital joystick port is occasionally also misused to connect other hardware, known examples are:Some Lightguns: ([[Category:HardwareGunstick]], [[Loriciel Phaser (West Phaser)|West Phaser]]).Amstrad's Lightpen ([[Amstrad LP-1 light pen]]).A rather crappy 8bit printer port extension ([[CPCI 8bit Printer Mod]]).And, various mouse interfaces ([[AMX Mouse]], [[Atari-ST mouse adapter]], [[dk'tronics Mouse Interface|Dk'tronics Mouse Interface]], [[CPC-Mousepack 2.0]], [[GEOS mouse|GEOS mouse]]).Plus exotic things like the [[Ambug|Ambug Robot]] and [[Codemasters CD]]. On the original CPCs, the direction/button inputs can be reprogrammed as outputs (via PSG/PPI config). However, this will NOT work on the CPC+/GX4000's dual joystick ports - which include diodes (like normal joystick Y-cables). [[Category:PeripheralsInput Device]][[Category:StubPeripherals]]
4,585
edits