mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
(MESS) Homelab : custom inputs must be active high (nw)
This commit is contained in:
parent
633427571e
commit
77e265eb04
@ -154,7 +154,7 @@ WRITE8_MEMBER( homelab_state::brailab4_portff_w )
|
||||
|
||||
CUSTOM_INPUT_MEMBER( homelab_state::cass3_r )
|
||||
{
|
||||
return 1;//(m_cass->input() > 0.03);
|
||||
return (m_cass->input() > 0.03);
|
||||
}
|
||||
|
||||
|
||||
@ -339,7 +339,7 @@ static INPUT_PORTS_START( homelab3 ) // F4 to F8 are foreign characters
|
||||
PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
|
||||
PORT_START("X3")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, homelab_state, cass3_r, " ")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, homelab_state, cass3_r, " ")
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1)
|
||||
PORT_BIT(0xf8, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
@ -452,7 +452,7 @@ static INPUT_PORTS_START( brailab4 ) // F4 to F8 are foreign characters
|
||||
PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
|
||||
PORT_START("X3")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, homelab_state, cass3_r, " ")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, homelab_state, cass3_r, " ")
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1)
|
||||
PORT_BIT(0xf8, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
|
Loading…
Reference in New Issue
Block a user