Previous 15994 Revisions Next

r1269 Tuesday 13th November, 2007 at 19:29:40 UTC by Stefano Priore
[CPC] Added comments clarifying what input devices can be connected to the CPC and CPC+
[src/mess/drivers]amstrad.c

src/mess/drivers/amstrad.c
r1268r1269
20672067   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_PLAYER(1) PORT_8WAY
20682068   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_BUTTON1)        PORT_PLAYER(1)
20692069   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON2)        PORT_PLAYER(1)
2070   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON3)        PORT_PLAYER(1)
2070   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED)
2071/* The bit for the third button is officially undocumented: Amstrad joysticks actually
2072   use only two buttons. The only device that reads this bit is the AMX mouse, which uses
2073   dedicated hardware to connect to the joystick port.
2074*/
2075//   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON3)        PORT_PLAYER(1)
20712076   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Del")                   PORT_CODE(KEYCODE_INSERT)     PORT_CHAR(8)
20722077
20732078/* Second joystick port need to be defined: the second joystick is daisy-chained on the back of the first one */
20742079
2080/* The CPC supports at least two different brands of lightpens, probably connected to the expansion port */
2081
20752082INPUT_PORTS_END
20762083
20772084
r1268r1269
21652172   /* The CPC+ and GX4000 adds support for analogue controllers.
21662173      Up to two joysticks or four paddles can be used, although the ASIC supports twice that.
21672174      Read at &6808-&680f in ASIC RAM
2168      I am unsure if these are even close to correct */
2175      I am unsure if these are even close to correct.
21692176
2177   UPDATE: the analog port supports (probably with an Y-cable) up to two analog joysticks
2178   with two buttons each or four paddles with one button each. The CPC+/GX4000 have also an
2179   AUX port which supports a lightgun/lightpen with two buttons.
2180   Since all these devices have their dedicated connector, two digital joystick, two analog joysticks
2181   and one lightgun can be connected at the same moment.
2182
2183   The connectors' description for both CPCs and CPC+'s can be found at http://www.hardwarebook.info/Category:Computer */
2184
21702185   PORT_START_TAG("analog1")
21712186   PORT_BIT(0x3f , 0, IPT_TRACKBALL_X)
21722187   PORT_SENSITIVITY(100)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team