mirror of
https://github.com/holub/mame
synced 2025-06-05 12:26:35 +03:00
hegenerglaser/*: add clickable element to internal artwork that presses 2 buttons at the same time where applicable
This commit is contained in:
parent
c1026f3123
commit
c860119abb
@ -28,6 +28,7 @@ function layout.startplugin()
|
||||
pairs = pairs,
|
||||
ipairs = ipairs,
|
||||
string = { format = string.format },
|
||||
tostring = tostring,
|
||||
table = { insert = table.insert, remove = table.remove } }
|
||||
local script, err = load(script, script, "t", env)
|
||||
if not script then
|
||||
|
@ -279,7 +279,7 @@ static INPUT_PORTS_START( arb )
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_CODE(KEYCODE_F1) PORT_NAME("Reset") PORT_CHANGED_MEMBER(DEVICE_SELF, arb_state, reset_button, 0)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) PORT_CODE(KEYCODE_F1) PORT_NAME("Halt") PORT_CHANGED_MEMBER(DEVICE_SELF, arb_state, halt_button, 0)
|
||||
|
||||
PORT_START("LISTEN") // helper for internal artwork
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
@ -207,7 +207,7 @@ static INPUT_PORTS_START( chessmst )
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Halt") PORT_CODE(KEYCODE_F2) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, halt_button, 0)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Reset") PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, reset_button, 0)
|
||||
|
||||
PORT_START("LISTEN") // helper for internal artwork
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
@ -272,6 +272,9 @@ static INPUT_PORTS_START( chessmstdm )
|
||||
PORT_START("IN.1")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Monitor") PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmstdm_state, monitor_button, 0)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("View") PORT_CODE(KEYCODE_F2) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmstdm_state, view_button, 0)
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
@ -116,6 +116,9 @@ static INPUT_PORTS_START( academy )
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("FCT") PORT_CODE(KEYCODE_F)
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("ENT") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_F1) // combine for NEW GAME
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("CL") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL) PORT_CODE(KEYCODE_F1) // "
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
@ -150,28 +150,31 @@ void amsterdam_state::dallas32_mem(address_map &map)
|
||||
|
||||
static INPUT_PORTS_START( amsterdam )
|
||||
PORT_START("KEY.0")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("INFO") PORT_CODE(KEYCODE_I)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("POS") PORT_CODE(KEYCODE_O)
|
||||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("LEV") PORT_CODE(KEYCODE_L)
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("MEM") PORT_CODE(KEYCODE_M)
|
||||
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("CL") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL)
|
||||
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("ENT") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD)
|
||||
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("G / 7 / King") PORT_CODE(KEYCODE_G) PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_7_PAD)
|
||||
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("H / 8") PORT_CODE(KEYCODE_H) PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_8_PAD)
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("INFO") PORT_CODE(KEYCODE_I)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("POS") PORT_CODE(KEYCODE_O)
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("LEV") PORT_CODE(KEYCODE_L)
|
||||
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("MEM") PORT_CODE(KEYCODE_M)
|
||||
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("CL") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL)
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("ENT") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD)
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("G / 7 / King") PORT_CODE(KEYCODE_G) PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_7_PAD)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("H / 8") PORT_CODE(KEYCODE_H) PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_8_PAD)
|
||||
|
||||
PORT_START("KEY.1")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("A / 1") PORT_CODE(KEYCODE_A) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("B / 2 / Pawn") PORT_CODE(KEYCODE_B) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD)
|
||||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("C / 3 / Knight") PORT_CODE(KEYCODE_C) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD)
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("D / 4 / Bishop") PORT_CODE(KEYCODE_D) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD)
|
||||
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("E / 5 / Rook") PORT_CODE(KEYCODE_E) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD)
|
||||
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("F / 6 / Queen") PORT_CODE(KEYCODE_F) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD)
|
||||
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Left / Black / 9") PORT_CODE(KEYCODE_9) PORT_CODE(KEYCODE_9_PAD) PORT_CODE(KEYCODE_LEFT)
|
||||
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Right / White / 0") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(KEYCODE_RIGHT)
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("A / 1") PORT_CODE(KEYCODE_A) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("B / 2 / Pawn") PORT_CODE(KEYCODE_B) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD)
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("C / 3 / Knight") PORT_CODE(KEYCODE_C) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD)
|
||||
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("D / 4 / Bishop") PORT_CODE(KEYCODE_D) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD)
|
||||
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("E / 5 / Rook") PORT_CODE(KEYCODE_E) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD)
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("F / 6 / Queen") PORT_CODE(KEYCODE_F) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD)
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Left / Black / 9") PORT_CODE(KEYCODE_9) PORT_CODE(KEYCODE_9_PAD) PORT_CODE(KEYCODE_LEFT)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Right / White / 0") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(KEYCODE_RIGHT)
|
||||
|
||||
PORT_START("RESET")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("RES 1") PORT_CODE(KEYCODE_Z) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, amsterdam_state, reset_button, 0)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("RES 2") PORT_CODE(KEYCODE_X) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, amsterdam_state, reset_button, 0)
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
@ -116,6 +116,9 @@ static INPUT_PORTS_START( berlin )
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Right") PORT_CODE(KEYCODE_RIGHT)
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("New Game (1/2)") PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_F1) // combine for NEW GAME
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("New Game (2/2)") PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_F1) // "
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
@ -151,6 +151,9 @@ static INPUT_PORTS_START( milano )
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Function / King") PORT_CODE(KEYCODE_F)
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Enter / New Game") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_F1) // combine for NEW GAME
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Clear / New Game") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL) PORT_CODE(KEYCODE_F1) // "
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
@ -277,6 +277,9 @@ static INPUT_PORTS_START( mm2 )
|
||||
PORT_START("RESET")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("RES 1") PORT_CODE(KEYCODE_Z) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, mm2_state, reset_button, 0)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("RES 2") PORT_CODE(KEYCODE_X) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, mm2_state, reset_button, 0)
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( bup )
|
||||
@ -303,6 +306,9 @@ static INPUT_PORTS_START( bup )
|
||||
PORT_START("RESET")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("RES 1") PORT_CODE(KEYCODE_Z) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, mm2_state, reset_button, 0)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("RES 2") PORT_CODE(KEYCODE_X) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, mm2_state, reset_button, 0)
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
@ -159,6 +159,9 @@ static INPUT_PORTS_START( modena )
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Function / King") PORT_CODE(KEYCODE_F)
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Enter / New Game") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_F1) // combine for NEW GAME
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Clear / New Game") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL) PORT_CODE(KEYCODE_F1) // "
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
@ -153,28 +153,31 @@ void mondial68k_state::mondial68k_mem(address_map &map)
|
||||
|
||||
static INPUT_PORTS_START( mondial68k )
|
||||
PORT_START("IN.0")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("A / 1") PORT_CODE(KEYCODE_A) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("E / 5 / Rook") PORT_CODE(KEYCODE_E) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD)
|
||||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Left / Black / 9") PORT_CODE(KEYCODE_9) PORT_CODE(KEYCODE_9_PAD) PORT_CODE(KEYCODE_LEFT)
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("LEV") PORT_CODE(KEYCODE_L)
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("A / 1") PORT_CODE(KEYCODE_A) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("E / 5 / Rook") PORT_CODE(KEYCODE_E) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD)
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Left / Black / 9") PORT_CODE(KEYCODE_9) PORT_CODE(KEYCODE_9_PAD) PORT_CODE(KEYCODE_LEFT)
|
||||
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("LEV") PORT_CODE(KEYCODE_L)
|
||||
|
||||
PORT_START("IN.1")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("B / 2 / Pawn") PORT_CODE(KEYCODE_B) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("F / 6 / Queen") PORT_CODE(KEYCODE_F) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD)
|
||||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Right / White / 0") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(KEYCODE_RIGHT)
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("MEM") PORT_CODE(KEYCODE_M)
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("B / 2 / Pawn") PORT_CODE(KEYCODE_B) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("F / 6 / Queen") PORT_CODE(KEYCODE_F) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD)
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Right / White / 0") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(KEYCODE_RIGHT)
|
||||
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("MEM") PORT_CODE(KEYCODE_M)
|
||||
|
||||
PORT_START("IN.2")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("C / 3 / Knight") PORT_CODE(KEYCODE_C) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("G / 7 / King") PORT_CODE(KEYCODE_G) PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_7_PAD)
|
||||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("INFO") PORT_CODE(KEYCODE_I)
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("CL") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL)
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("C / 3 / Knight") PORT_CODE(KEYCODE_C) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("G / 7 / King") PORT_CODE(KEYCODE_G) PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_7_PAD)
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("INFO") PORT_CODE(KEYCODE_I)
|
||||
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("CL") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL) PORT_CODE(KEYCODE_F1) // combine ENT/CL for NEW GAME
|
||||
|
||||
PORT_START("IN.3")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("D / 4 / Bishop") PORT_CODE(KEYCODE_D) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("H / 8") PORT_CODE(KEYCODE_H) PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_8_PAD)
|
||||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("POS") PORT_CODE(KEYCODE_O)
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("ENT") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD)
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("D / 4 / Bishop") PORT_CODE(KEYCODE_D) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("H / 8") PORT_CODE(KEYCODE_H) PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_8_PAD)
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("POS") PORT_CODE(KEYCODE_O)
|
||||
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("ENT") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD) PORT_CODE(KEYCODE_F1) // combine ENT/CL for NEW GAME
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
@ -96,6 +96,9 @@ static INPUT_PORTS_START( polgar )
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("FCT / King") PORT_CODE(KEYCODE_F)
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("ENT / New Game") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_F1) // combine for NEW GAME
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("CL / New Game") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL) PORT_CODE(KEYCODE_F1) // "
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
@ -132,6 +132,9 @@ static INPUT_PORTS_START( mrisc )
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("FCT / King") PORT_CODE(KEYCODE_F)
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("ENT / New Game") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_F1) // combine for NEW GAME
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("CL / New Game") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL) PORT_CODE(KEYCODE_F1) // "
|
||||
|
||||
PORT_START("CLICKABLE") // helper for clickable artwork
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@ license:CC0
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":LISTEN"]:read() & 1
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":IN.1"]:field(0x01):set_value(cur_state)
|
||||
machine.ioport.ports[":IN.1"]:field(0x02):set_value(cur_state)
|
||||
@ -569,7 +569,7 @@ license:CC0
|
||||
<element name="9.9" ref="led2"><bounds x="91" y="60.25" width="1.5" height="1.5" /></element>
|
||||
<element name="9.8" ref="led2"><bounds x="91" y="63.25" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element ref="nothing" inputtag="LISTEN" inputmask="0x01"><bounds x="95" y="13" width="2" height="2" /></element>
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="95" y="13" width="2" height="2" /></element>
|
||||
<element ref="bt" inputtag="IN.1" inputmask="0x01"><bounds x="95" y="13" width="2" height="2" /></element>
|
||||
<element ref="bt" inputtag="IN.1" inputmask="0x02"><bounds x="95" y="17" width="2" height="2" /></element>
|
||||
|
||||
|
@ -11,7 +11,7 @@ license:CC0
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":LISTEN"]:read() & 1
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":IN.1"]:field(0x01):set_value(cur_state)
|
||||
machine.ioport.ports[":IN.1"]:field(0x02):set_value(cur_state)
|
||||
@ -506,7 +506,7 @@ license:CC0
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x02"><bounds x="118" y="62" width="4" height="4" /></element>
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x01"><bounds x="118" y="69" width="4" height="4" /></element>
|
||||
|
||||
<element ref="nothing" inputtag="LISTEN" inputmask="0x01"><bounds x="108" y="79" width="4" height="4" /></element>
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="108" y="79" width="4" height="4" /></element>
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x02"><bounds x="108" y="79" width="4" height="4" /></element>
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x01"><bounds x="122" y="79" width="4" height="4" /></element>
|
||||
|
||||
|
@ -4,6 +4,25 @@ license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":IN.1"]:field(0x01):set_value(cur_state)
|
||||
machine.ioport.ports[":IN.1"]:field(0x02):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="black_rect">
|
||||
@ -24,6 +43,7 @@ license:CC0
|
||||
<color red="1.0" green="0.0" blue="0.0" />
|
||||
</disk>
|
||||
</element>
|
||||
|
||||
<element name="hlb" defstate="0">
|
||||
<disk state="0">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
@ -35,6 +55,10 @@ license:CC0
|
||||
</disk>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"> <rect><color red="0.84" green="0.75" blue="0.50" /></rect> <text string="1"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_2"> <rect><color red="0.84" green="0.75" blue="0.50" /></rect> <text string="2"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_3"> <rect><color red="0.84" green="0.75" blue="0.50" /></rect> <text string="3"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
@ -410,10 +434,10 @@ license:CC0
|
||||
<element ref="text_move_fore"> <bounds x="115" y="84" width="12" height="2" /></element>
|
||||
<element ref="text_playmode"> <bounds x="103" y="74" width="10" height="2" /></element>
|
||||
|
||||
<element name="8.a" ref="led"> <bounds x="110.5" y="20.63" width="1.5" height="1.5" /> </element>
|
||||
<element name="9.a" ref="led"> <bounds x="112" y="74.13" width="1.5" height="1.5" /> </element>
|
||||
<element ref="black_rect"> <bounds x="119.4" y="24.2" width="0.2" height="1.6" /> </element>
|
||||
<element ref="black_rect"> <bounds x="116.7" y="25.0" width="2.9" height="0.2" /> </element>
|
||||
<element name="8.a" ref="led"><bounds x="110.5" y="20.63" width="1.5" height="1.5" /></element>
|
||||
<element name="9.a" ref="led"><bounds x="112" y="74.13" width="1.5" height="1.5" /></element>
|
||||
<element ref="black_rect"><bounds x="119.4" y="24.2" width="0.2" height="1.6" /></element>
|
||||
<element ref="black_rect"><bounds x="116.7" y="25.0" width="2.9" height="0.2" /></element>
|
||||
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x01"><bounds x="117" y="19" width="5" height="5" /></element>
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x02"><bounds x="117" y="26" width="5" height="5" /></element>
|
||||
@ -426,8 +450,11 @@ license:CC0
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x02"><bounds x="105" y="78" width="5" height="5" /></element>
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x01"><bounds x="119" y="78" width="5" height="5" /></element>
|
||||
|
||||
<!-- hidden input at the left of MONITOR/VIEW buttons to press both -->
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="110.8" y="24" width="5" height="2" /></element>
|
||||
|
||||
<!-- panel 16seg leds -->
|
||||
<element name="display_background" ref="black_rect"> <bounds x="101" y="4" width="26" height="9.2" /> </element>
|
||||
<element name="display_background" ref="black_rect"> <bounds x="101" y="4" width="26" height="9.2" /></element>
|
||||
<element name="digit3" ref="digit"> <bounds x="102" y="4.5" width="5.66" height="8.5" /></element>
|
||||
<element name="digit2" ref="digit"> <bounds x="108" y="4.5" width="5.66" height="8.5" /></element>
|
||||
<element name="digit1" ref="digit"> <bounds x="114" y="4.5" width="5.66" height="8.5" /></element>
|
||||
|
@ -4,6 +4,25 @@ license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":KEY"]:field(0x40):set_value(cur_state)
|
||||
machine.ioport.ports[":KEY"]:field(0x80):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="ledo">
|
||||
@ -47,6 +66,10 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="background"><rect><color red="0.56" green="0.33" blue="0.12" /></rect></element>
|
||||
<element name="bmask"><rect><color red="0.6" green="0.6" blue="0.6" /></rect></element>
|
||||
<element name="white"><rect><color red="0.84" green="0.75" blue="0.50" /></rect></element>
|
||||
@ -455,6 +478,9 @@ license:CC0
|
||||
<element ref="hlbr" inputtag="KEY" inputmask="0x40"> <bounds x="69" y="3.75" width="1.5" height="2.5" /> </element>
|
||||
<element ref="hlbr" inputtag="KEY" inputmask="0x80"> <bounds x="75" y="3.75" width="1.5" height="2.5" /> </element>
|
||||
|
||||
<!-- hidden input below ENT/CL buttons to press both -->
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="69" y="6.85" width="7.5" height="1.3" /></element>
|
||||
|
||||
<element ref="ledo"><bounds x="31.1" y="0.1" width="1.3" height="1.3" /></element>
|
||||
<element ref="ledo"><bounds x="37.1" y="0.1" width="1.3" height="1.3" /></element>
|
||||
<element ref="ledo"><bounds x="43.1" y="0.1" width="1.3" height="1.3" /></element>
|
||||
|
@ -4,6 +4,25 @@ license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":RESET"]:field(0x01):set_value(cur_state)
|
||||
machine.ioport.ports[":RESET"]:field(0x02):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="led" defstate="0">
|
||||
@ -25,6 +44,10 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="1"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
<element name="text_2"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="2"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
<element name="text_3"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="3"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
@ -511,8 +534,11 @@ license:CC0
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x10"><bounds x="89" y="98" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x20"><bounds x="94" y="98" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="69" y="103" width="4" height="4" /></element>
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="74" y="103" width="4" height="4" /></element>
|
||||
<element ref="keys" inputtag="RESET" inputmask="0x01"><bounds x="69" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="RESET" inputmask="0x02"><bounds x="74" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
||||
<element ref="keys" inputtag="KEY.0" inputmask="0x40"><bounds x="79" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.0" inputmask="0x80"><bounds x="84" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x40"><bounds x="89" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
@ -4,6 +4,25 @@ license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":KEY"]:field(0x40):set_value(cur_state)
|
||||
machine.ioport.ports[":KEY"]:field(0x80):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="led" defstate="0">
|
||||
@ -25,6 +44,10 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"> <text string="1"> <color red="0.9" green="0.9" blue="0.9" /></text> </element>
|
||||
<element name="text_2"> <text string="2"> <color red="0.9" green="0.9" blue="0.9" /></text> </element>
|
||||
<element name="text_3"> <text string="3"> <color red="0.9" green="0.9" blue="0.9" /></text> </element>
|
||||
@ -368,14 +391,18 @@ license:CC0
|
||||
<group name="panel2">
|
||||
<bounds left="0" right="24" top="11" bottom="24" />
|
||||
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x04"> <bounds x="0.5" y="11" width="5" height="1" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x08"> <bounds x="6.5" y="11" width="5" height="1" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x10"> <bounds x="12.5" y="11" width="5" height="1" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x20"> <bounds x="18.5" y="11" width="5" height="1" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x40"> <bounds x="0.5" y="20" width="5" height="1" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x80"> <bounds x="6.5" y="20" width="5" height="1" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x02"> <bounds x="12.5" y="20" width="5" height="1" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x01"> <bounds x="18.5" y="20" width="5" height="1" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x04"><bounds x="0.5" y="11" width="5" height="1" /></element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x08"><bounds x="6.5" y="11" width="5" height="1" /></element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x10"><bounds x="12.5" y="11" width="5" height="1" /></element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x20"><bounds x="18.5" y="11" width="5" height="1" /></element>
|
||||
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="0.5" y="20" width="5" height="1" /></element>
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="6.5" y="20" width="5" height="1" /></element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x40"><bounds x="0.5" y="20" width="5" height="1" /></element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x80"><bounds x="6.5" y="20" width="5" height="1" /></element>
|
||||
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x02"><bounds x="12.5" y="20" width="5" height="1" /></element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x01"><bounds x="18.5" y="20" width="5" height="1" /></element>
|
||||
|
||||
<element ref="text_up"> <bounds x="0.5" y="12.5" width="5" height="1.4" /> </element>
|
||||
<element ref="text_down"> <bounds x="6.5" y="12.5" width="5" height="1.4" /> </element>
|
||||
|
@ -4,6 +4,25 @@ license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":RESET"]:field(0x01):set_value(cur_state)
|
||||
machine.ioport.ports[":RESET"]:field(0x02):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="led" defstate="0">
|
||||
@ -25,6 +44,10 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="1"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
<element name="text_2"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="2"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
<element name="text_3"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="3"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
@ -525,8 +548,11 @@ license:CC0
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x01"><bounds x="89" y="98" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x02"><bounds x="94" y="98" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="69" y="103" width="4" height="4" /></element>
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="74" y="103" width="4" height="4" /></element>
|
||||
<element ref="keys" inputtag="RESET" inputmask="0x01"><bounds x="69" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="RESET" inputmask="0x02"><bounds x="74" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x04"><bounds x="79" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x10"><bounds x="84" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.0" inputmask="0x80"><bounds x="89" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
@ -3,6 +3,26 @@
|
||||
license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":KEY"]:field(0x40):set_value(cur_state)
|
||||
machine.ioport.ports[":KEY"]:field(0x80):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="white"><rect><color red="1" green="1" blue="1" /></rect></element>
|
||||
@ -36,6 +56,10 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"> <text string="1"> <color red="1" green="1" blue="1" /></text> </element>
|
||||
<element name="text_2"> <text string="2"> <color red="1" green="1" blue="1" /></text> </element>
|
||||
<element name="text_3"> <text string="3"> <color red="1" green="1" blue="1" /></text> </element>
|
||||
@ -378,6 +402,9 @@ license:CC0
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x40"> <bounds x="12.5" y="20" width="5" height="1" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x80"> <bounds x="18.5" y="20" width="5" height="1" /> </element>
|
||||
|
||||
<!-- hidden input below ENTER/CLEAR buttons to press both -->
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="14.7" y="21.65" width="6.6" height="1.2" /></element>
|
||||
|
||||
<element ref="text_training"> <bounds x="0" y="9" width="6" height="1.4" /> </element>
|
||||
<element ref="text_info"> <bounds x="6" y="9" width="6" height="1.4" /> </element>
|
||||
<element ref="text_memory"> <bounds x="12" y="9" width="6" height="1.4" /> </element>
|
||||
|
@ -4,6 +4,25 @@ license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":RESET"]:field(0x01):set_value(cur_state)
|
||||
machine.ioport.ports[":RESET"]:field(0x02):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="led" defstate="0">
|
||||
@ -25,6 +44,10 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="1"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
<element name="text_2"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="2"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
<element name="text_3"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="3"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
@ -534,8 +557,11 @@ license:CC0
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x01"><bounds x="89" y="98" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x02"><bounds x="94" y="98" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="69" y="103" width="4" height="4" /></element>
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="74" y="103" width="4" height="4" /></element>
|
||||
<element ref="keys" inputtag="RESET" inputmask="0x01"><bounds x="69" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="RESET" inputmask="0x02"><bounds x="74" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x04"><bounds x="79" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x10"><bounds x="84" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.0" inputmask="0x80"><bounds x="89" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
@ -6,6 +6,25 @@ license:CC0
|
||||
|
||||
<!-- same as MM II, but clock symbol changed to INFO -->
|
||||
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":RESET"]:field(0x01):set_value(cur_state)
|
||||
machine.ioport.ports[":RESET"]:field(0x02):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="led" defstate="0">
|
||||
@ -27,6 +46,10 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="1"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
<element name="text_2"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="2"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
<element name="text_3"><rect><color red="0.56" green="0.33" blue="0.12" /></rect><text string="3"><color red="0.87" green="0.87" blue="0.84" /></text></element>
|
||||
@ -530,8 +553,11 @@ license:CC0
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x01"><bounds x="89" y="98" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x02"><bounds x="94" y="98" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="69" y="103" width="4" height="4" /></element>
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="74" y="103" width="4" height="4" /></element>
|
||||
<element ref="keys" inputtag="RESET" inputmask="0x01"><bounds x="69" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="RESET" inputmask="0x02"><bounds x="74" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x04"><bounds x="79" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.1" inputmask="0x10"><bounds x="84" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
<element ref="keys" inputtag="KEY.0" inputmask="0x80"><bounds x="89" y="103" width="4" height="4" /><color alpha="0.25" /></element>
|
||||
|
@ -4,6 +4,25 @@ license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":KEY"]:field(0x40):set_value(cur_state)
|
||||
machine.ioport.ports[":KEY"]:field(0x80):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="white"><rect><color red="1" green="1" blue="1" /></rect></element>
|
||||
@ -36,6 +55,10 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"> <text string="1"> <color red="1" green="1" blue="1" /></text> </element>
|
||||
<element name="text_2"> <text string="2"> <color red="1" green="1" blue="1" /></text> </element>
|
||||
<element name="text_3"> <text string="3"> <color red="1" green="1" blue="1" /></text> </element>
|
||||
@ -405,6 +428,9 @@ license:CC0
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x40"> <bounds x="12.5" y="20" width="5" height="1" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x80"> <bounds x="18.5" y="20" width="5" height="1" /> </element>
|
||||
|
||||
<!-- hidden input below ENTER/CLEAR buttons to press both -->
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="14.7" y="21.65" width="6.6" height="1.2" /></element>
|
||||
|
||||
<element ref="text_book"> <bounds x="0" y="9" width="6" height="1.4" /> </element>
|
||||
<element ref="text_info"> <bounds x="6" y="9" width="6" height="1.4" /> </element>
|
||||
<element ref="text_memory"> <bounds x="12" y="9" width="6" height="1.4" /> </element>
|
||||
|
@ -4,6 +4,25 @@ license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":IN.2"]:field(0x08):set_value(cur_state)
|
||||
machine.ioport.ports[":IN.3"]:field(0x08):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="digit" defstate="0">
|
||||
@ -19,14 +38,13 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
<element name="hlb" defstate="0">
|
||||
<text string=" ">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
</text>
|
||||
<disk state="1">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
<rect state="1">
|
||||
<color red="1.0" green="1.0" blue="1.0" />
|
||||
</disk>
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="led7seg_background"><rect><color red="0.54" green="0.57" blue="0.58" /> </rect></element>
|
||||
@ -425,6 +443,9 @@ license:CC0
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x08"> <bounds x="55.5" y="6.5" width="6" height="4" /> <color alpha="0.3"/></element>
|
||||
<element ref="hlb" inputtag="IN.2" inputmask="0x08"> <bounds x="64" y="6.5" width="6" height="4" /> <color alpha="0.3"/></element>
|
||||
<element ref="hlb" inputtag="IN.3" inputmask="0x08"> <bounds x="72.5" y="6.5" width="6" height="4" /> <color alpha="0.3"/></element>
|
||||
|
||||
<!-- hidden input between CL/ENT buttons to press both -->
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="70" y="6.5" width="2.5" height="4" /></element>
|
||||
</group>
|
||||
|
||||
|
||||
|
@ -2,10 +2,28 @@
|
||||
<!--
|
||||
license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- mephisto_polgar.lay and mephisto_risc.lay are identical -->
|
||||
|
||||
<mamelayout version="2">
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":KEY"]:field(0x40):set_value(cur_state)
|
||||
machine.ioport.ports[":KEY"]:field(0x80):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
@ -28,6 +46,10 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"> <rect><color red="0.56" green="0.33" blue="0.12" /></rect> <text string="1"><color red="0.87" green="0.87" blue="0.84" /></text> </element>
|
||||
<element name="text_2"> <rect><color red="0.56" green="0.33" blue="0.12" /></rect> <text string="2"><color red="0.87" green="0.87" blue="0.84" /></text> </element>
|
||||
<element name="text_3"> <rect><color red="0.56" green="0.33" blue="0.12" /></rect> <text string="3"><color red="0.87" green="0.87" blue="0.84" /></text> </element>
|
||||
@ -420,6 +442,9 @@ license:CC0
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x20"> <bounds x="54.5" y="3" width="3.5" height="2.5" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x40"> <bounds x="49.5" y="10" width="3.5" height="2.5" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x80"> <bounds x="54.5" y="10" width="3.5" height="2.5" /> </element>
|
||||
|
||||
<!-- hidden input above ENT/CL buttons to press both -->
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="52.2" y="8.0" width="3.1" height="1.1" /></element>
|
||||
</group>
|
||||
|
||||
|
||||
|
@ -2,10 +2,28 @@
|
||||
<!--
|
||||
license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- mephisto_polgar.lay and mephisto_risc.lay are identical -->
|
||||
|
||||
<mamelayout version="2">
|
||||
<!-- luascript (-plugin layout), for pressing 2 buttons simultaneously -->
|
||||
|
||||
<script><![CDATA[
|
||||
local layout = {}
|
||||
local prev_state = 0
|
||||
|
||||
function layout.frame()
|
||||
local cur_state = machine.ioport.ports[":CLICKABLE"]:read() & 1
|
||||
if cur_state ~= prev_state then
|
||||
machine.ioport.ports[":KEY"]:field(0x40):set_value(cur_state)
|
||||
machine.ioport.ports[":KEY"]:field(0x80):set_value(cur_state)
|
||||
end
|
||||
prev_state = cur_state
|
||||
end
|
||||
|
||||
return layout
|
||||
]]></script>
|
||||
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
@ -28,6 +46,10 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="nothing" defstate="0">
|
||||
<rect><color alpha="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"> <rect><color red="0.56" green="0.33" blue="0.12" /></rect> <text string="1"><color red="0.87" green="0.87" blue="0.84" /></text> </element>
|
||||
<element name="text_2"> <rect><color red="0.56" green="0.33" blue="0.12" /></rect> <text string="2"><color red="0.87" green="0.87" blue="0.84" /></text> </element>
|
||||
<element name="text_3"> <rect><color red="0.56" green="0.33" blue="0.12" /></rect> <text string="3"><color red="0.87" green="0.87" blue="0.84" /></text> </element>
|
||||
@ -420,6 +442,9 @@ license:CC0
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x20"> <bounds x="54.5" y="3" width="3.5" height="2.5" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x40"> <bounds x="49.5" y="10" width="3.5" height="2.5" /> </element>
|
||||
<element ref="hlb" inputtag="KEY" inputmask="0x80"> <bounds x="54.5" y="10" width="3.5" height="2.5" /> </element>
|
||||
|
||||
<!-- hidden input above ENT/CL buttons to press both -->
|
||||
<element ref="nothing" inputtag="CLICKABLE" inputmask="0x01"><bounds x="52.2" y="8.0" width="3.1" height="1.1" /></element>
|
||||
</group>
|
||||
|
||||
|
||||
|
@ -31,14 +31,9 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
<element name="hlb" defstate="0">
|
||||
<text string=" ">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
</text>
|
||||
<disk state="1">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
<rect state="1">
|
||||
<color red="1.0" green="1.0" blue="1.0" />
|
||||
</disk>
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="led7seg_background"><rect><color red="0.54" green="0.57" blue="0.58" /> </rect></element>
|
||||
|
@ -31,14 +31,9 @@ license:CC0
|
||||
</rect>
|
||||
</element>
|
||||
<element name="hlb" defstate="0">
|
||||
<text string=" ">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
</text>
|
||||
<disk state="1">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
<rect state="1">
|
||||
<color red="1.0" green="1.0" blue="1.0" />
|
||||
</disk>
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="led7seg_background"><rect><color red="0.54" green="0.57" blue="0.58" /> </rect></element>
|
||||
|
Loading…
Reference in New Issue
Block a user