From 31816d3e84d6813bd5393c941d7b8af601ce7a64 Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 21 Dec 2014 16:50:22 +0100 Subject: fix OFF button --- src/mess/drivers/tispeak.c | 11 +++++------ src/mess/layout/tispeak.lay | 10 +++++----- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/mess/drivers/tispeak.c b/src/mess/drivers/tispeak.c index 20ddb7bfeeb..f7e38da925d 100644 --- a/src/mess/drivers/tispeak.c +++ b/src/mess/drivers/tispeak.c @@ -1,5 +1,5 @@ // license:BSD-3-Clause -// copyright-holders:hap +// copyright-holders:hap, Lord Nightmare /*************************************************************************** Texas Instruments Speak & Spell hardware @@ -159,7 +159,7 @@ void tispeak_state::power_off() WRITE_LINE_MEMBER(tispeak_state::auto_power_off) { - // power-off request from the MCU, usually after a couple of minutes of idling + // power-off request from the MCU, when [OFF] is pressed, also typically after a couple of minutes of idling if (state) power_off(); } @@ -186,7 +186,6 @@ WRITE16_MEMBER(tispeak_state::snmath_write_o) INPUT_CHANGED_MEMBER(tispeak_state::power_button) { - // note: even though power buttons are on the matrix, they are not MCU-controlled int on = (int)(FPTR)param; if (on) @@ -245,7 +244,7 @@ static INPUT_PORTS_START( snspell ) PORT_BIT( 0x1f, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_START("IN.7") // R7 - PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Off") PORT_CHANGED_MEMBER(DEVICE_SELF, tispeak_state, power_button, (void *)0) + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Off") // -> auto_power_off PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_NAME("Go") PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_NAME("Replay") PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_NAME("Repeat") @@ -286,7 +285,7 @@ static INPUT_PORTS_START( snmath ) PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD) PORT_NAME("Enter") PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Q) PORT_NAME("Go") - PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Off") PORT_CHANGED_MEMBER(DEVICE_SELF, tispeak_state, power_button, (void *)0) + PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Off") // -> auto_power_off PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_START("IN.4") // R4 @@ -300,7 +299,7 @@ static INPUT_PORTS_START( snmath ) PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PLUS_PAD) PORT_NAME("+") PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_MINUS_PAD) PORT_NAME("-") PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_ASTERISK) PORT_NAME(UTF8_MULTIPLY) - PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH_PAD) PORT_NAME(UTF8_DIVIDE) + PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH_PAD) PORT_NAME(UTF8_DIVIDE) // / PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_E) PORT_NAME("Mix It") PORT_START("IN.6") // R6 diff --git a/src/mess/layout/tispeak.lay b/src/mess/layout/tispeak.lay index 2fb07738076..cb65a0519f1 100644 --- a/src/mess/layout/tispeak.lay +++ b/src/mess/layout/tispeak.lay @@ -6,18 +6,18 @@ - + - - + + - - + + -- cgit v1.2.3