diff options
author | 2019-07-09 16:54:09 -0300 | |
---|---|---|
committer | 2019-07-09 16:54:09 -0300 | |
commit | 92dc9b749a7be801355b00e51c35acf1085dbe44 (patch) | |
tree | 18051a3934ad7eda8c12e01d46d69bf7aeec7e88 /src/devices/bus/nes_ctrl/hori.cpp | |
parent | dbe25d1be114264495c85844f6c458ee2ebe02f3 (diff) |
nes,sms: Change the way screen is set for light gun
Diffstat (limited to 'src/devices/bus/nes_ctrl/hori.cpp')
-rw-r--r-- | src/devices/bus/nes_ctrl/hori.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/devices/bus/nes_ctrl/hori.cpp b/src/devices/bus/nes_ctrl/hori.cpp index 1515277abb6..394ebcc9239 100644 --- a/src/devices/bus/nes_ctrl/hori.cpp +++ b/src/devices/bus/nes_ctrl/hori.cpp @@ -61,16 +61,22 @@ static void hori_adapter(device_slot_interface &device) void nes_horitwin_device::device_add_mconfig(machine_config &config) { - NES_CONTROL_PORT(config, "port1", hori_adapter, "joypad"); - NES_CONTROL_PORT(config, "port2", hori_adapter, "joypad"); + NES_CONTROL_PORT(config, m_port1, hori_adapter, "joypad"); + NES_CONTROL_PORT(config, m_port2, hori_adapter, "joypad"); + m_port1->set_screen_tag(m_port->m_screen); + m_port2->set_screen_tag(m_port->m_screen); } void nes_hori4p_device::device_add_mconfig(machine_config &config) { - NES_CONTROL_PORT(config, "port1", hori_adapter, "joypad"); - NES_CONTROL_PORT(config, "port2", hori_adapter, "joypad"); - NES_CONTROL_PORT(config, "port3", hori_adapter, "joypad"); - NES_CONTROL_PORT(config, "port4", hori_adapter, "joypad"); + NES_CONTROL_PORT(config, m_port1, hori_adapter, "joypad"); + NES_CONTROL_PORT(config, m_port2, hori_adapter, "joypad"); + NES_CONTROL_PORT(config, m_port3, hori_adapter, "joypad"); + NES_CONTROL_PORT(config, m_port4, hori_adapter, "joypad"); + m_port1->set_screen_tag(m_port->m_screen); + m_port2->set_screen_tag(m_port->m_screen); + m_port3->set_screen_tag(m_port->m_screen); + m_port4->set_screen_tag(m_port->m_screen); } |