src/mess/drivers/arcadia.c
| r1223 | r1224 | |
| 4 | 4 | Paul Robson's Emulator at www.classicgaming.com/studio2 made it possible |
| 5 | 5 | ******************************************************************************/ |
| 6 | 6 | |
| 7 | /* |
| 8 | Schematics, manuals and anything you can desire for at http://amigan.classicgaming.gamespy.com/ |
| 9 | |
| 10 | TODO: Define a proper color table - see machine/arcadia.c for details |
| 11 | */ |
| 12 | |
| 7 | 13 | #include <assert.h> |
| 8 | 14 | #include "driver.h" |
| 9 | 15 | #include "image.h" |
| r1223 | r1224 | |
| 24 | 30 | AM_RANGE( S2650_SENSE_PORT,S2650_SENSE_PORT) AM_READ( arcadia_vsync_r) |
| 25 | 31 | ADDRESS_MAP_END |
| 26 | 32 | |
| 33 | /* The Emerson Arcadia 2001 controllers have 2 fire buttons on the side, |
| 34 | but actually they are wired to keypad button #2. The following definitions |
| 35 | are meant to document this fact. The keypad has the following layout: |
| 36 | |
| 37 | 1 2 3 |
| 38 | 4 5 6 |
| 39 | 7 8 9 |
| 40 | Cl 0 En */ |
| 41 | |
| 27 | 42 | INPUT_PORTS_START( arcadia ) |
| 28 | | PORT_START |
| 29 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Start") PORT_CODE(KEYCODE_F1) |
| 30 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Option") PORT_CODE(KEYCODE_F2) |
| 31 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(DEF_STR(Difficulty)) PORT_CODE(KEYCODE_F5) |
| 32 | | PORT_START |
| 33 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 34 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 1") PORT_CODE(KEYCODE_1) |
| 35 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 4") PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_Q) |
| 36 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 7") PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_A) |
| 37 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left Clear") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_Z) |
| 38 | | PORT_START |
| 39 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 40 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 2/Button") PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_LCONTROL) |
| 41 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 5") PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_W) |
| 42 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 8") PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_S) |
| 43 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 0") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_X) |
| 44 | | PORT_START |
| 45 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 46 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 3") PORT_CODE(KEYCODE_3) |
| 47 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 6") PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_E) |
| 48 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 9") PORT_CODE(KEYCODE_9) PORT_CODE(KEYCODE_D) |
| 49 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left Enter") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_C) |
| 50 | | PORT_START |
| 51 | | PORT_BIT ( 0xff, 0xf0, IPT_UNUSED ) // used in palladium |
| 52 | | PORT_START |
| 53 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 54 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 1") PORT_CODE(KEYCODE_1_PAD) |
| 55 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 4") PORT_CODE(KEYCODE_4_PAD) |
| 56 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 7") PORT_CODE(KEYCODE_7_PAD) |
| 57 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right Clear") PORT_CODE(KEYCODE_DEL_PAD) |
| 58 | | PORT_START |
| 59 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 60 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 2/Button") PORT_CODE(KEYCODE_2_PAD) PORT_CODE(KEYCODE_LALT) |
| 61 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 5") PORT_CODE(KEYCODE_5_PAD) |
| 62 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 8") PORT_CODE(KEYCODE_8_PAD) |
| 63 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 0") PORT_CODE(KEYCODE_0_PAD) |
| 64 | | PORT_START |
| 65 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 66 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 3") PORT_CODE(KEYCODE_3_PAD) |
| 67 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 6") PORT_CODE(KEYCODE_6_PAD) |
| 68 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 9") PORT_CODE(KEYCODE_9_PAD) |
| 69 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right ENTER") PORT_CODE(KEYCODE_ENTER_PAD) |
| 70 | | PORT_START |
| 71 | | PORT_BIT ( 0xff, 0xf0, IPT_UNUSED ) // used in palladium |
| 43 | PORT_START_TAG("panel") |
| 44 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Start") PORT_CODE(KEYCODE_S) |
| 45 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Option") PORT_CODE(KEYCODE_O) |
| 46 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Select") PORT_CODE(KEYCODE_E) |
| 47 | // PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Reset") PORT_CODE(KEYCODE_R) Not implemented |
| 48 | PORT_START_TAG("controller1_col1") |
| 49 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 50 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Keypad 1") PORT_CODE(KEYCODE_1) PORT_PLAYER(1) |
| 51 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("P1 Keypad 4") PORT_CODE(KEYCODE_4) PORT_PLAYER(1) |
| 52 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON9 ) PORT_NAME("P1 Keypad 7") PORT_CODE(KEYCODE_7) PORT_PLAYER(1) |
| 53 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON13) PORT_NAME("P1 Keypad Clear") PORT_CODE(KEYCODE_DEL) PORT_PLAYER(1) |
| 54 | PORT_START_TAG("controller1_col2") |
| 55 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 56 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 57 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 58 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 Keypad 2") PORT_CODE(KEYCODE_2) PORT_PLAYER(1) |
| 59 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_NAME("P1 Keypad 5") PORT_CODE(KEYCODE_5) PORT_PLAYER(1) |
| 60 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON10) PORT_NAME("P1 Keypad 8") PORT_CODE(KEYCODE_8) PORT_PLAYER(1) |
| 61 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON12) PORT_NAME("P1 Keypad 0") PORT_CODE(KEYCODE_0) PORT_PLAYER(1) |
| 62 | PORT_START_TAG("controller1_col3") |
| 63 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 64 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("P1 Keypad 3") PORT_CODE(KEYCODE_3) PORT_PLAYER(1) |
| 65 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON8 ) PORT_NAME("P1 Keypad 6") PORT_CODE(KEYCODE_6) PORT_PLAYER(1) |
| 66 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON11) PORT_NAME("P1 Keypad 9") PORT_CODE(KEYCODE_9) PORT_PLAYER(1) |
| 67 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON14) PORT_NAME("P1 Keypad Enter") PORT_CODE(KEYCODE_ENTER) PORT_PLAYER(1) |
| 68 | PORT_START_TAG("controller1_extra") |
| 69 | PORT_BIT(0xff, 0xf0, IPT_UNUSED) // used in palladium |
| 70 | PORT_START_TAG("controller2_col1") |
| 71 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 72 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P2 Keypad 1") PORT_CODE(KEYCODE_1_PAD) PORT_PLAYER(2) |
| 73 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("P2 Keypad 4") PORT_CODE(KEYCODE_4_PAD) PORT_PLAYER(2) |
| 74 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON9 ) PORT_NAME("P2 Keypad 7") PORT_CODE(KEYCODE_7_PAD) PORT_PLAYER(2) |
| 75 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON13) PORT_NAME("P2 Keypad Clear") PORT_CODE(KEYCODE_DEL_PAD) PORT_PLAYER(2) |
| 76 | PORT_START_TAG("controller2_col2") |
| 77 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 78 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 79 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 80 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P2 Keypad 2") PORT_CODE(KEYCODE_2_PAD) PORT_PLAYER(2) |
| 81 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_NAME("P2 Keypad 5") PORT_CODE(KEYCODE_5_PAD) PORT_PLAYER(2) |
| 82 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON10) PORT_NAME("P2 Keypad 8") PORT_CODE(KEYCODE_8_PAD) PORT_PLAYER(2) |
| 83 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON12) PORT_NAME("P2 Keypad 0") PORT_CODE(KEYCODE_0_PAD) PORT_PLAYER(2) |
| 84 | PORT_START_TAG("controller2_col3") |
| 85 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 86 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("P2 Keypad 3") PORT_CODE(KEYCODE_3_PAD) PORT_PLAYER(2) |
| 87 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON8 ) PORT_NAME("P2 Keypad 6") PORT_CODE(KEYCODE_6_PAD) PORT_PLAYER(2) |
| 88 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON11) PORT_NAME("P2 Keypad 9") PORT_CODE(KEYCODE_9_PAD) PORT_PLAYER(2) |
| 89 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON14) PORT_NAME("P2 Keypad Enter") PORT_CODE(KEYCODE_ENTER_PAD) PORT_PLAYER(2) |
| 90 | PORT_START_TAG("controller2_extra") |
| 91 | PORT_BIT(0xff, 0xf0, IPT_UNUSED) // used in palladium |
| 92 | |
| 93 | /* FIXME: the joystick are analog - the actual definition is merely an hack */ |
| 94 | |
| 72 | 95 | #if 0 |
| 73 | 96 | // shit, auto centering too slow, so only using 5 bits, and scaling at videoside |
| 74 | | PORT_START |
| 75 | | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X) PORT_SENSITIVITY(1) PORT_KEYDELTA(2000) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_LEFT) PORT_CODE_INC(KEYCODE_RIGHT) PORT_CODE_DEC(JOYCODE_1_LEFT) PORT_CODE_INC(JOYCODE_1_RIGHT) PORT_RESET |
| 76 | | PORT_START |
| 77 | | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y) PORT_SENSITIVITY(1) PORT_KEYDELTA(2000) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_UP) PORT_CODE_INC(KEYCODE_DOWN) PORT_CODE_DEC(JOYCODE_1_UP) PORT_CODE_INC(JOYCODE_1_DOWN) PORT_RESET |
| 78 | | PORT_START |
| 79 | | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_DEL) PORT_CODE_INC(KEYCODE_PGDN) PORT_CODE_DEC(JOYCODE_2_LEFT) PORT_CODE_INC(JOYCODE_2_RIGHT) PORT_PLAYER(2) PORT_RESET |
| 80 | | PORT_START |
| 81 | | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_HOME) PORT_CODE_INC(KEYCODE_END) PORT_CODE_DEC(JOYCODE_2_UP) PORT_CODE_INC(JOYCODE_2_DOWN) PORT_PLAYER(2) PORT_RESET |
| 97 | PORT_START_TAG("controller1_joy_x") |
| 98 | PORT_BIT(0x1fe,0x10,IPT_AD_STICK_X) |
| 99 | PORT_SENSITIVITY(1) |
| 100 | PORT_KEYDELTA(2000) |
| 101 | PORT_MINMAX(0,0x1f) |
| 102 | PORT_CODE_DEC(KEYCODE_LEFT) |
| 103 | PORT_CODE_INC(KEYCODE_RIGHT) |
| 104 | PORT_CODE_DEC(JOYCODE_1_LEFT) |
| 105 | PORT_CODE_INC(JOYCODE_1_RIGHT) |
| 106 | PORT_PLAYER(1) |
| 107 | PORT_RESET |
| 108 | |
| 109 | PORT_START_TAG("controller1_joy_y") |
| 110 | PORT_BIT(0x1fe,0x10,IPT_AD_STICK_Y) |
| 111 | PORT_SENSITIVITY(1) |
| 112 | PORT_KEYDELTA(2000) |
| 113 | PORT_MINMAX(0,0x1f) |
| 114 | PORT_CODE_DEC(KEYCODE_UP) |
| 115 | PORT_CODE_INC(KEYCODE_DOWN) |
| 116 | PORT_CODE_DEC(JOYCODE_1_UP) |
| 117 | PORT_CODE_INC(JOYCODE_1_DOWN) |
| 118 | PORT_PLAYER(1) |
| 119 | PORT_RESET |
| 120 | |
| 121 | PORT_START_TAG("controller2_joy_x") |
| 122 | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X) |
| 123 | PORT_SENSITIVITY(100) |
| 124 | PORT_KEYDELTA(10) |
| 125 | PORT_MINMAX(0,0x1f) |
| 126 | PORT_CODE_DEC(KEYCODE_DEL) |
| 127 | PORT_CODE_INC(KEYCODE_PGDN) |
| 128 | PORT_CODE_DEC(JOYCODE_2_LEFT) |
| 129 | PORT_CODE_INC(JOYCODE_2_RIGHT) |
| 130 | PORT_PLAYER(2) |
| 131 | PORT_RESET |
| 132 | |
| 133 | PORT_START_TAG("controller2_joy_y") |
| 134 | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y) |
| 135 | PORT_SENSITIVITY(100) |
| 136 | PORT_KEYDELTA(10) |
| 137 | PORT_MINMAX(0,0x1f) |
| 138 | PORT_CODE_DEC(KEYCODE_HOME) |
| 139 | PORT_CODE_INC(KEYCODE_END) |
| 140 | PORT_CODE_DEC(JOYCODE_2_UP) |
| 141 | PORT_CODE_INC(JOYCODE_2_DOWN) |
| 142 | PORT_PLAYER(2) |
| 143 | PORT_RESET |
| 82 | 144 | #else |
| 83 | | PORT_START |
| 84 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/left") PORT_CODE(KEYCODE_LEFT) |
| 85 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/right") PORT_CODE(KEYCODE_RIGHT) |
| 86 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/down") PORT_CODE(KEYCODE_DOWN) |
| 87 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/up") PORT_CODE(KEYCODE_UP) |
| 88 | | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/left") PORT_CODE(KEYCODE_DEL) |
| 89 | | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/right") PORT_CODE(KEYCODE_PGDN) |
| 90 | | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/down") PORT_CODE(KEYCODE_END) |
| 91 | | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/up") PORT_CODE(KEYCODE_HOME) |
| 145 | PORT_START_TAG("joysticks") |
| 146 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT) PORT_PLAYER(1) PORT_8WAY |
| 147 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(1) PORT_8WAY |
| 148 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN) PORT_PLAYER(1) PORT_8WAY |
| 149 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_PLAYER(1) PORT_8WAY |
| 150 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT) PORT_PLAYER(2) PORT_8WAY |
| 151 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(2) PORT_8WAY |
| 152 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN) PORT_PLAYER(2) PORT_8WAY |
| 153 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_PLAYER(2) PORT_8WAY |
| 92 | 154 | #endif |
| 93 | 155 | INPUT_PORTS_END |
| 94 | 156 | |
| 157 | /* The Palladium Video-Computer-Game controllers have no fire buttons on their side |
| 158 | but have a 16 keys unlabeled keypad. The keys are fully independent and layed out |
| 159 | according to this weird scheme, which keeps backward compatibility to Arcadia 2001's |
| 160 | electrical wiring. |
| 161 | |
| 162 | 2 |
| 163 | 13 14 15 |
| 164 | 1 16 3 |
| 165 | 4 5 6 |
| 166 | 7 8 9 |
| 167 | 10 11 12 */ |
| 168 | |
| 95 | 169 | INPUT_PORTS_START( vcg ) |
| 96 | | PORT_START |
| 97 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Start") PORT_CODE(KEYCODE_F1) |
| 98 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Selector A") PORT_CODE(KEYCODE_F2) |
| 99 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Selector B") PORT_CODE(KEYCODE_F5) |
| 100 | | PORT_START |
| 101 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) // some bits must be high |
| 102 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 1") PORT_CODE(KEYCODE_1) |
| 103 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 4") PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_Q) |
| 104 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 7") PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_A) |
| 105 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left Clear") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_Z) |
| 106 | | PORT_START |
| 107 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 108 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 2/Button") PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_LCONTROL) |
| 109 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 5") PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_W) |
| 110 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 8") PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_S) |
| 111 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 0") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_X) |
| 112 | | PORT_START |
| 113 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 114 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 3") PORT_CODE(KEYCODE_3) |
| 115 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 6") PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_E) |
| 116 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 9") PORT_CODE(KEYCODE_9) PORT_CODE(KEYCODE_D) |
| 117 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left Enter") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_C) |
| 118 | | PORT_START |
| 119 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 120 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left x1") PORT_CODE(KEYCODE_R) |
| 121 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left x2") PORT_CODE(KEYCODE_F) |
| 122 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left x3") PORT_CODE(KEYCODE_V) |
| 123 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left x4") PORT_CODE(KEYCODE_G) |
| 124 | | PORT_START |
| 125 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 126 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 1") PORT_CODE(KEYCODE_1_PAD) |
| 127 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 4") PORT_CODE(KEYCODE_4_PAD) |
| 128 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 7") PORT_CODE(KEYCODE_7_PAD) |
| 129 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right Clear") PORT_CODE(KEYCODE_DEL_PAD) |
| 130 | | PORT_START |
| 131 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 132 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 2/Button") PORT_CODE(KEYCODE_2_PAD) PORT_CODE(KEYCODE_LALT) |
| 133 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 5") PORT_CODE(KEYCODE_5_PAD) |
| 134 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 8") PORT_CODE(KEYCODE_8_PAD) |
| 135 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 0") PORT_CODE(KEYCODE_0_PAD) |
| 136 | | PORT_START |
| 137 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 138 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 3") PORT_CODE(KEYCODE_3_PAD) |
| 139 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 6") PORT_CODE(KEYCODE_6_PAD) |
| 140 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 9") PORT_CODE(KEYCODE_9_PAD) |
| 141 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right ENTER") PORT_CODE(KEYCODE_ENTER_PAD) |
| 142 | | PORT_START |
| 143 | | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 144 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right x1") PORT_CODE(KEYCODE_ASTERISK) |
| 145 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right x2") PORT_CODE(KEYCODE_SLASH_PAD) |
| 146 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right x3") PORT_CODE(KEYCODE_MINUS_PAD) |
| 147 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right x4") PORT_CODE(KEYCODE_PLUS_PAD) |
| 170 | PORT_START_TAG("panel") |
| 171 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Start") PORT_CODE(KEYCODE_S) |
| 172 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Selector A") PORT_CODE(KEYCODE_A) |
| 173 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Selector B") PORT_CODE(KEYCODE_B) |
| 174 | // PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Reset") PORT_CODE(KEYCODE_R) Not implemented |
| 175 | PORT_START_TAG("controller1_col1") |
| 176 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) // some bits must be high |
| 177 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P1 Keypad 1") PORT_CODE(KEYCODE_1) PORT_PLAYER(1) |
| 178 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 Keypad 4") PORT_CODE(KEYCODE_4) PORT_PLAYER(1) |
| 179 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_NAME("P1 Keypad 7") PORT_CODE(KEYCODE_7) PORT_PLAYER(1) |
| 180 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON10) PORT_NAME("P1 Keypad 10") PORT_CODE(KEYCODE_DEL) PORT_PLAYER(1) |
| 181 | PORT_START_TAG("controller1_col2") |
| 182 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 183 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("P1 Keypad 2") PORT_CODE(KEYCODE_2) PORT_PLAYER(1) |
| 184 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("P1 Keypad 5") PORT_CODE(KEYCODE_5) PORT_PLAYER(1) |
| 185 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON8 ) PORT_NAME("P1 Keypad 8") PORT_CODE(KEYCODE_8) PORT_PLAYER(1) |
| 186 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON11) PORT_NAME("P1 Keypad 11") PORT_CODE(KEYCODE_0) PORT_PLAYER(1) |
| 187 | PORT_START_TAG("controller1_col3") |
| 188 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 189 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Keypad 3") PORT_CODE(KEYCODE_3) PORT_PLAYER(1) |
| 190 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("P1 Keypad 6") PORT_CODE(KEYCODE_6) PORT_PLAYER(1) |
| 191 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON9 ) PORT_NAME("P1 Keypad 9") PORT_CODE(KEYCODE_9) PORT_PLAYER(1) |
| 192 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON12) PORT_NAME("P1 Keypad 12") PORT_CODE(KEYCODE_ENTER) PORT_PLAYER(1) |
| 193 | PORT_START_TAG("controller1_extra") |
| 194 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 195 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON13) PORT_NAME("P1 Keypad 13") PORT_CODE(KEYCODE_U) PORT_PLAYER(1) |
| 196 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON14) PORT_NAME("P1 Keypad 14") PORT_CODE(KEYCODE_I) PORT_PLAYER(1) |
| 197 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON15) PORT_NAME("P1 Keypad 15") PORT_CODE(KEYCODE_O) PORT_PLAYER(1) |
| 198 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON16) PORT_NAME("P1 Keypad 16") PORT_CODE(KEYCODE_K) PORT_PLAYER(1) |
| 199 | PORT_START_TAG("controller2_col1") |
| 200 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 201 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P2 Keypad 1") PORT_CODE(KEYCODE_1_PAD) PORT_PLAYER(2) |
| 202 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P2 Keypad 4") PORT_CODE(KEYCODE_4_PAD) PORT_PLAYER(2) |
| 203 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_NAME("P2 Keypad 7") PORT_CODE(KEYCODE_7_PAD) PORT_PLAYER(2) |
| 204 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON10) PORT_NAME("P2 Keypad 10") PORT_CODE(KEYCODE_DEL_PAD) PORT_PLAYER(2) |
| 205 | PORT_START_TAG("controller2_col2") |
| 206 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 207 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("P2 Keypad 2") PORT_CODE(KEYCODE_2_PAD) PORT_PLAYER(2) |
| 208 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("P2 Keypad 5") PORT_CODE(KEYCODE_5_PAD) PORT_PLAYER(2) |
| 209 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON8 ) PORT_NAME("P2 Keypad 8") PORT_CODE(KEYCODE_8_PAD) PORT_PLAYER(2) |
| 210 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON11) PORT_NAME("P2 Keypad 11") PORT_CODE(KEYCODE_0_PAD) PORT_PLAYER(2) |
| 211 | PORT_START_TAG("controller2_col3") |
| 212 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 213 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P2 Keypad 3") PORT_CODE(KEYCODE_3_PAD) PORT_PLAYER(2) |
| 214 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("P2 Keypad 6") PORT_CODE(KEYCODE_6_PAD) PORT_PLAYER(2) |
| 215 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON9 ) PORT_NAME("P2 Keypad 9") PORT_CODE(KEYCODE_9_PAD) PORT_PLAYER(2) |
| 216 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON12) PORT_NAME("P2 Keypad 12") PORT_CODE(KEYCODE_ENTER_PAD) PORT_PLAYER(2) |
| 217 | PORT_START_TAG("controller2_extra") |
| 218 | PORT_BIT(0xf0, 0xf0, IPT_UNUSED) |
| 219 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON13) PORT_NAME("P2 Keypad 13") PORT_CODE(KEYCODE_SLASH_PAD) PORT_PLAYER(2) |
| 220 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON14) PORT_NAME("P2 Keypad 14") PORT_CODE(KEYCODE_ASTERISK) PORT_PLAYER(2) |
| 221 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON15) PORT_NAME("P2 Keypad 15") PORT_CODE(KEYCODE_MINUS_PAD) PORT_PLAYER(2) |
| 222 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON16) PORT_NAME("P2 Keypad 16") PORT_CODE(KEYCODE_PLUS_PAD) PORT_PLAYER(2) |
| 223 | |
| 224 | /* FIXME: the joystick are analog - the actual definition is merely an hack */ |
| 225 | |
| 148 | 226 | #if 0 |
| 149 | 227 | // shit, auto centering too slow, so only using 5 bits, and scaling at videoside |
| 150 | | PORT_START |
| 151 | | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X) PORT_SENSITIVITY(1) PORT_KEYDELTA(2000) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_LEFT) PORT_CODE_INC(KEYCODE_RIGHT) PORT_CODE_DEC(JOYCODE_1_LEFT) PORT_CODE_INC(JOYCODE_1_RIGHT) PORT_RESET |
| 152 | | PORT_START |
| 153 | | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y) PORT_SENSITIVITY(1) PORT_KEYDELTA(2000) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_UP) PORT_CODE_INC(KEYCODE_DOWN) PORT_CODE_DEC(JOYCODE_1_UP) PORT_CODE_INC(JOYCODE_1_DOWN) PORT_RESET |
| 154 | | PORT_START |
| 155 | | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_DEL) PORT_CODE_INC(KEYCODE_PGDN) PORT_CODE_DEC(JOYCODE_2_LEFT) PORT_CODE_INC(JOYCODE_2_RIGHT) PORT_PLAYER(2) PORT_RESET |
| 156 | | PORT_START |
| 157 | | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_HOME) PORT_CODE_INC(KEYCODE_END) PORT_CODE_DEC(JOYCODE_2_UP) PORT_CODE_INC(JOYCODE_2_DOWN) PORT_PLAYER(2) PORT_RESET |
| 228 | PORT_START_TAG("controller1_joy_x") |
| 229 | PORT_BIT(0x1fe,0x10,IPT_AD_STICK_X) |
| 230 | PORT_SENSITIVITY(1) |
| 231 | PORT_KEYDELTA(2000) |
| 232 | PORT_MINMAX(0,0x1f) |
| 233 | PORT_CODE_DEC(KEYCODE_LEFT) |
| 234 | PORT_CODE_INC(KEYCODE_RIGHT) |
| 235 | PORT_CODE_DEC(JOYCODE_1_LEFT) |
| 236 | PORT_CODE_INC(JOYCODE_1_RIGHT) |
| 237 | PORT_PLAYER(1) |
| 238 | PORT_RESET |
| 239 | |
| 240 | PORT_START_TAG("controller1_joy_y") |
| 241 | PORT_BIT(0x1fe,0x10,IPT_AD_STICK_Y) |
| 242 | PORT_SENSITIVITY(1) |
| 243 | PORT_KEYDELTA(2000) |
| 244 | PORT_MINMAX(0,0x1f) |
| 245 | PORT_CODE_DEC(KEYCODE_UP) |
| 246 | PORT_CODE_INC(KEYCODE_DOWN) |
| 247 | PORT_CODE_DEC(JOYCODE_1_UP) |
| 248 | PORT_CODE_INC(JOYCODE_1_DOWN) |
| 249 | PORT_PLAYER(1) |
| 250 | PORT_RESET |
| 251 | |
| 252 | PORT_START_TAG("controller2_joy_x") |
| 253 | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X) |
| 254 | PORT_SENSITIVITY(100) |
| 255 | PORT_KEYDELTA(10) |
| 256 | PORT_MINMAX(0,0x1f) |
| 257 | PORT_CODE_DEC(KEYCODE_DEL) |
| 258 | PORT_CODE_INC(KEYCODE_PGDN) |
| 259 | PORT_CODE_DEC(JOYCODE_2_LEFT) |
| 260 | PORT_CODE_INC(JOYCODE_2_RIGHT) |
| 261 | PORT_PLAYER(2) |
| 262 | PORT_RESET |
| 263 | |
| 264 | PORT_START_TAG("controller2_joy_y") |
| 265 | PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y) |
| 266 | PORT_SENSITIVITY(100) |
| 267 | PORT_KEYDELTA(10) |
| 268 | PORT_MINMAX(0,0x1f) |
| 269 | PORT_CODE_DEC(KEYCODE_HOME) |
| 270 | PORT_CODE_INC(KEYCODE_END) |
| 271 | PORT_CODE_DEC(JOYCODE_2_UP) |
| 272 | PORT_CODE_INC(JOYCODE_2_DOWN) |
| 273 | PORT_PLAYER(2) |
| 274 | PORT_RESET |
| 158 | 275 | #else |
| 159 | | PORT_START |
| 160 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/left") PORT_CODE(KEYCODE_LEFT) |
| 161 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/right") PORT_CODE(KEYCODE_RIGHT) |
| 162 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/down") PORT_CODE(KEYCODE_DOWN) |
| 163 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/up") PORT_CODE(KEYCODE_UP) |
| 164 | | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/left") PORT_CODE(KEYCODE_DEL) |
| 165 | | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/right") PORT_CODE(KEYCODE_PGDN) |
| 166 | | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/down") PORT_CODE(KEYCODE_END) |
| 167 | | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/up") PORT_CODE(KEYCODE_HOME) |
| 276 | PORT_START_TAG("joysticks") |
| 277 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT) PORT_PLAYER(1) PORT_8WAY |
| 278 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(1) PORT_8WAY |
| 279 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN) PORT_PLAYER(1) PORT_8WAY |
| 280 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_PLAYER(1) PORT_8WAY |
| 281 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT) PORT_PLAYER(2) PORT_8WAY |
| 282 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(2) PORT_8WAY |
| 283 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN) PORT_PLAYER(2) PORT_8WAY |
| 284 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_PLAYER(2) PORT_8WAY |
| 168 | 285 | #endif |
| 169 | 286 | INPUT_PORTS_END |
| 170 | 287 | |
| r1223 | r1224 | |
| 191 | 308 | }; |
| 192 | 309 | |
| 193 | 310 | static GFXDECODE_START( arcadia_gfxdecodeinfo ) |
| 194 | | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, arcadia_charlayout, 0, 2 ) |
| 311 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, arcadia_charlayout, 0, 128 ) |
| 195 | 312 | GFXDECODE_END |
| 196 | 313 | |
| 197 | 314 | static unsigned char arcadia_palette[] = |
| r1223 | r1224 | |
| 206 | 323 | 0, 0, 0 // black |
| 207 | 324 | }; |
| 208 | 325 | |
| 209 | | static unsigned short arcadia_colortable[1][2] = { |
| 326 | static unsigned short arcadia_colortable[2][2] = { |
| 210 | 327 | { 0, 1 }, |
| 328 | { 1, 0 } |
| 211 | 329 | }; |
| 212 | 330 | |
| 213 | 331 | static PALETTE_INIT( arcadia ) |
| r1223 | r1224 | |
| 232 | 350 | MDRV_SCREEN_SIZE(128+2*XPOS, 262) |
| 233 | 351 | MDRV_SCREEN_VISIBLE_AREA(0, 2*XPOS+128-1, 0, 262-1) |
| 234 | 352 | MDRV_GFXDECODE( arcadia_gfxdecodeinfo ) |
| 235 | | MDRV_PALETTE_LENGTH(sizeof (arcadia_palette) / sizeof (arcadia_palette[0])) |
| 353 | MDRV_PALETTE_LENGTH(sizeof (arcadia_palette) / sizeof (arcadia_palette[0]) / 3) |
| 236 | 354 | MDRV_COLORTABLE_LENGTH(sizeof (arcadia_colortable) / sizeof(arcadia_colortable[0][0])) |
| 237 | 355 | MDRV_PALETTE_INIT( arcadia ) |
| 238 | 356 | |
| r1223 | r1224 | |
| 492 | 610 | |
| 493 | 611 | // different cartridge connector (same size as mpt03, but different pinout!) |
| 494 | 612 | // 16 keys instead of 12 |
| 495 | | CONS(198?, vcg, arcadia, 0, arcadia, vcg, arcadia, arcadia, "Palladium", "VIDEO - COMPUTER - GAME", GAME_IMPERFECT_SOUND ) |
| 613 | CONS(198?, vcg, arcadia, 0, arcadia, vcg, arcadia, arcadia, "Palladium", "Video-Computer-Game", GAME_IMPERFECT_SOUND ) |