src/mess/drivers/coco.c
| r6136 | r6137 | |
| 11 | 11 | Version information: |
| 12 | 12 | |
| 13 | 13 | Basic Extended Basic Disk Extended |
| 14 | | coco 1.0 - - |
| 15 | | cocoe 1.1 1.0 1.0 |
| 16 | | coco2 1.2 1.1 1.1 |
| 17 | | coco2b 1.3 1.1 1.1 |
| 18 | | coco3 1.2 2.0 1.1 |
| 19 | | coco3p 1.2 2.0 1.1 |
| 20 | | coco3h 1.2 2.0 1.1 |
| 14 | coco 1.0 - - |
| 15 | cocoe 1.1 1.0 1.0 |
| 16 | coco2 1.2 1.1 1.1 |
| 17 | coco2b 1.3 1.1 1.1 |
| 18 | coco3 1.2 2.0 1.1 |
| 19 | coco3p 1.2 2.0 1.1 |
| 20 | coco3h 1.2 2.0 1.1 |
| 21 | 21 | |
| 22 | 22 | |
| 23 | Input-related note (FP, 2009-10): currently, button inputs are shared |
| 24 | by the various controllers. This makes life easier when trying to |
| 25 | re-configure buttons (a single change modifies all the controllers), |
| 26 | but it has the undesired side effect of making the buttons available |
| 27 | for remapping also when no device is connected to the input port. |
| 28 | We should probably move buttons to separate INPUT_PORTS. |
| 23 | 29 | |
| 24 | 30 | ***************************************************************************/ |
| 25 | 31 | |
| r6136 | r6137 | |
| 319 | 325 | |
| 320 | 326 | static INPUT_PORTS_START( coco_joystick_buttons ) |
| 321 | 327 | PORT_START("joystick_buttons") |
| 322 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Right Button") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(1) PORT_CATEGORY(11) |
| 323 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Left Button") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(2) PORT_CATEGORY(21) |
| 328 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Right Button") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(1) |
| 329 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Left Button") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(2) |
| 324 | 330 | INPUT_PORTS_END |
| 325 | 331 | |
| 326 | 332 | static INPUT_PORTS_START( coco3_joystick_buttons ) |
| 327 | 333 | PORT_START("joystick_buttons") |
| 328 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Right Button 1") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(1) PORT_CATEGORY(11) |
| 329 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Right Button 2") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_DEL_PAD) PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(1) PORT_CATEGORY(11) |
| 330 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Left Button 1") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(2) PORT_CATEGORY(21) |
| 331 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Left Button 2") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_DEL_PAD) PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(2) PORT_CATEGORY(21) |
| 334 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Right Button 1") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(1) |
| 335 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Right Button 2") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_DEL_PAD) PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(1) |
| 336 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Left Button 1") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(2) |
| 337 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Left Button 2") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_DEL_PAD) PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(2) |
| 332 | 338 | INPUT_PORTS_END |
| 333 | 339 | |
| 334 | 340 | static INPUT_PORTS_START( coco_rat_mouse ) |