src/mess/drivers/amstrad.c
| r1268 | r1269 | |
| 2067 | 2067 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_PLAYER(1) PORT_8WAY |
| 2068 | 2068 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_BUTTON1) PORT_PLAYER(1) |
| 2069 | 2069 | 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) |
| 2071 | 2076 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Del") PORT_CODE(KEYCODE_INSERT) PORT_CHAR(8) |
| 2072 | 2077 | |
| 2073 | 2078 | /* Second joystick port need to be defined: the second joystick is daisy-chained on the back of the first one */ |
| 2074 | 2079 | |
| 2080 | /* The CPC supports at least two different brands of lightpens, probably connected to the expansion port */ |
| 2081 | |
| 2075 | 2082 | INPUT_PORTS_END |
| 2076 | 2083 | |
| 2077 | 2084 | |
| r1268 | r1269 | |
| 2165 | 2172 | /* The CPC+ and GX4000 adds support for analogue controllers. |
| 2166 | 2173 | Up to two joysticks or four paddles can be used, although the ASIC supports twice that. |
| 2167 | 2174 | 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. |
| 2169 | 2176 | |
| 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 | |
| 2170 | 2185 | PORT_START_TAG("analog1") |
| 2171 | 2186 | PORT_BIT(0x3f , 0, IPT_TRACKBALL_X) |
| 2172 | 2187 | PORT_SENSITIVITY(100) |