From 95832c8646f00fc99d64e7236d88a6dcb12b1068 Mon Sep 17 00:00:00 2001 From: hap Date: Fri, 24 Nov 2023 19:46:25 +0100 Subject: tking: change button ordering, small tweak to internal artwork --- src/mame/layout/saitek_corona.lay | 2 +- src/mame/layout/saitek_sstar28k.lay | 12 ++--- src/mame/layout/saitek_stratos.lay | 18 ++++---- src/mame/layout/saitek_tking.lay | 91 ++++++++++++++++++------------------- src/mame/layout/saitek_tstar432.lay | 12 ++--- src/mame/saitek/stratos.cpp | 40 ++++++++++++++-- 6 files changed, 100 insertions(+), 75 deletions(-) diff --git a/src/mame/layout/saitek_corona.lay b/src/mame/layout/saitek_corona.lay index 4c6fa286221..7bd404a9571 100644 --- a/src/mame/layout/saitek_corona.lay +++ b/src/mame/layout/saitek_corona.lay @@ -581,7 +581,7 @@ license:CC0-1.0 - + diff --git a/src/mame/layout/saitek_sstar28k.lay b/src/mame/layout/saitek_sstar28k.lay index ebcaac6597f..49068e16125 100644 --- a/src/mame/layout/saitek_sstar28k.lay +++ b/src/mame/layout/saitek_sstar28k.lay @@ -373,8 +373,7 @@ license:CC0-1.0 - - + @@ -393,8 +392,7 @@ license:CC0-1.0 - - + @@ -413,8 +411,7 @@ license:CC0-1.0 - - + @@ -449,8 +446,7 @@ license:CC0-1.0 - - + diff --git a/src/mame/layout/saitek_stratos.lay b/src/mame/layout/saitek_stratos.lay index 64744576329..4bd5ed5e7a7 100644 --- a/src/mame/layout/saitek_stratos.lay +++ b/src/mame/layout/saitek_stratos.lay @@ -560,7 +560,7 @@ license:CC0-1.0 - + @@ -570,14 +570,14 @@ license:CC0-1.0 - - - - - - - - + + + + + + + + diff --git a/src/mame/layout/saitek_tking.lay b/src/mame/layout/saitek_tking.lay index f025e5e3f52..155038e6147 100644 --- a/src/mame/layout/saitek_tking.lay +++ b/src/mame/layout/saitek_tking.lay @@ -18,8 +18,10 @@ license:CC0-1.0 - - + + + + @@ -562,17 +564,17 @@ license:CC0-1.0 - - - - - - + + + + + + - - - - + + + + @@ -580,22 +582,22 @@ license:CC0-1.0 - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -618,7 +620,6 @@ license:CC0-1.0 - @@ -638,9 +639,8 @@ license:CC0-1.0 - - - + + @@ -702,33 +702,32 @@ license:CC0-1.0 - - + - - - + + + - + - - - - - - - - + + + + + + + + diff --git a/src/mame/layout/saitek_tstar432.lay b/src/mame/layout/saitek_tstar432.lay index ccb07508756..01554918496 100644 --- a/src/mame/layout/saitek_tstar432.lay +++ b/src/mame/layout/saitek_tstar432.lay @@ -356,8 +356,7 @@ license:CC0-1.0 - - + @@ -376,8 +375,7 @@ license:CC0-1.0 - - + @@ -396,8 +394,7 @@ license:CC0-1.0 - - + @@ -432,8 +429,7 @@ license:CC0-1.0 - - + diff --git a/src/mame/saitek/stratos.cpp b/src/mame/saitek/stratos.cpp index 7b3d745e744..8a81ff76ec1 100644 --- a/src/mame/saitek/stratos.cpp +++ b/src/mame/saitek/stratos.cpp @@ -437,9 +437,43 @@ static INPUT_PORTS_START( stratos ) PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_CUSTOM) PORT_READ_LINE_DEVICE_MEMBER(DEVICE_SELF, stratos_state, lcd_ready_r) INPUT_PORTS_END -static INPUT_PORTS_START( tking2 ) +static INPUT_PORTS_START( tking ) // same buttons, but different locations PORT_INCLUDE( stratos ) + PORT_MODIFY("IN.0") + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) PORT_NAME("Set Up") + PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_G) PORT_CODE(KEYCODE_L) PORT_NAME("Level") + + PORT_MODIFY("IN.1") + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_W) PORT_NAME("Sound") + PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_J) PORT_NAME("Stop") + PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_K) PORT_CODE(KEYCODE_N) PORT_NAME("New Game") + + PORT_MODIFY("IN.4") + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_F) PORT_NAME("Play Normal") + PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_A) PORT_NAME("Tab / Color") + PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_S) PORT_CODE(KEYCODE_MINUS) PORT_CODE(KEYCODE_MINUS_PAD) PORT_NAME("-") + + PORT_MODIFY("IN.5") + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Q) PORT_CODE(KEYCODE_EQUALS) PORT_CODE(KEYCODE_PLUS_PAD) PORT_NAME("+") + PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_D) PORT_NAME("Function") + + PORT_MODIFY("IN.6") + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_H) PORT_NAME("Library") + PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_U) PORT_NAME("Info") + + PORT_MODIFY("IN.7") + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_UNUSED) + PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_NAME("Analysis") + PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_E) PORT_NAME("Normal") + + PORT_MODIFY("RESET") + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Y) PORT_CHANGED_MEMBER(DEVICE_SELF, saitek_stratos_state, go_button, 0) PORT_NAME("Go") +INPUT_PORTS_END + +static INPUT_PORTS_START( tking2 ) + PORT_INCLUDE( tking ) + PORT_MODIFY("IN.5") PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_CUSTOM) @@ -544,5 +578,5 @@ SYST( 1987, stratos, 0, 0, stratos, stratos, stratos_state, empty_in SYST( 1987, stratosa, stratos, 0, stratos, stratos, stratos_state, empty_init, "SciSys", "Kasparov Stratos (set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) SYST( 1990, tking, stratos, 0, tking2, tking2, stratos_state, empty_init, "Saitek", "Kasparov Turbo King (ver. D)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) // aka Turbo King II -SYST( 1988, tkinga, stratos, 0, tking, stratos, stratos_state, empty_init, "Saitek", "Kasparov Turbo King (ver. B, set 1)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -SYST( 1988, tkingb, stratos, 0, tking, stratos, stratos_state, empty_init, "Saitek", "Kasparov Turbo King (ver. B, set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) +SYST( 1988, tkinga, stratos, 0, tking, tking, stratos_state, empty_init, "Saitek", "Kasparov Turbo King (ver. B, set 1)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) +SYST( 1988, tkingb, stratos, 0, tking, tking, stratos_state, empty_init, "Saitek", "Kasparov Turbo King (ver. B, set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -- cgit v1.2.3