Previous 15994 Revisions Next

r2082 Monday 24th March, 2008 at 03:58:48 UTC by Robbbert
[AQUARIUS] Fixed palette, connected Space and Enter keys.
[src/mess/drivers]aquarius.c

src/mess/drivers/aquarius.c
r2081r2082
6969   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, aquarius_charlayout, 0, 256 )
7070GFXDECODE_END
7171
72static const rgb_t aquarius_palette[] =
72static const rgb_t aquarius_colors[] =
7373{
7474   RGB_BLACK,               /* Black */
7575   MAKE_RGB(0xff, 0x00, 0x00),   /* Red */
r2081r2082
8989   MAKE_RGB(0x7f, 0x7f, 0x7f)   /* Dark Gray */
9090};
9191
92static const unsigned short aquarius_colortable[] =
92static const unsigned short aquarius_palette[] =
9393{
9494    0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0,10, 0,11, 0,12, 0,13, 0,14, 0,15, 0,
9595    0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1,10, 1,11, 1,12, 1,13, 1,14, 1,15, 1,
r2081r2082
111111
112112static PALETTE_INIT( aquarius )
113113{
114   palette_set_colors(machine, 0, aquarius_palette, ARRAY_LENGTH(aquarius_palette));
114   int i;
115
116   machine->colortable = colortable_alloc(machine, 16);
117
118   for ( i = 0; i < 16; i++ )
119      colortable_palette_set_color(machine->colortable, i, aquarius_colors[i]);
120
121   for (i=0; i < 512; i++)
122      colortable_entry_set_value(machine->colortable, i, aquarius_palette[i]);
115123}
116124
117125/* Keyboard input */
r2081r2082
121129   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("=       +   NEXT")   PORT_CODE(KEYCODE_EQUALS)     PORT_CHAR('=') PORT_CHAR('+')
122130   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Del     \\")         PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(8)   PORT_CHAR('\\')
123131   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":       *   PEEK")   PORT_CODE(KEYCODE_QUOTE)      PORT_CHAR(':') PORT_CHAR('*')
124   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rtn")                PORT_CODE(KEYCODE_SLASH)      PORT_CHAR(13)
132   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rtn")                PORT_CODE(KEYCODE_ENTER)      PORT_CHAR(13)
125133   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(";       @   POKE")   PORT_CODE(KEYCODE_COLON)      PORT_CHAR(';') PORT_CHAR('@')
126134   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(".       >   VAL")    PORT_CODE(KEYCODE_STOP)       PORT_CHAR('.') PORT_CHAR('>')
127135   PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED)
r2081r2082
176184   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("e       E   DIM")    PORT_CODE(KEYCODE_E)          PORT_CHAR('e') PORT_CHAR('E')  PORT_CHAR(5)
177185   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("s       S   Stplst") PORT_CODE(KEYCODE_S)          PORT_CHAR('s') PORT_CHAR('S')  PORT_CHAR(19)
178186   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("z       Z   CLOAD")  PORT_CODE(KEYCODE_Z)          PORT_CHAR('z') PORT_CHAR('Z')  PORT_CHAR(26)
179   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space       CHR$")   PORT_CODE(KEYCODE_LSHIFT)     PORT_CHAR(32)
187   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space       CHR$")   PORT_CODE(KEYCODE_SPACE)      PORT_CHAR(32)
180188   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("a       A   CSAVE")  PORT_CODE(KEYCODE_A)          PORT_CHAR('a') PORT_CHAR('A')  PORT_CHAR(1)
181189   PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED)
182190

Previous 15994 Revisions Next


© 1998-2018 The MESS Team