diff options
| author | 2020-10-15 09:58:19 -0400 | |
|---|---|---|
| committer | 2020-10-15 09:58:19 -0400 | |
| commit | 6ef3f9dc5b1a6752184c64c86a2951807a4c4669 (patch) | |
| tree | ac18141cfbb6bc9f6072c282d7cce8f3beeb2ccf /src/devices/machine/pckeybrd.cpp | |
| parent | 91c315a38d53a944c8adc346ddd67bb44cba12c2 (diff) | |
machine/pckeybrd.cpp: Internalize input ports
Diffstat (limited to 'src/devices/machine/pckeybrd.cpp')
| -rw-r--r-- | src/devices/machine/pckeybrd.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/devices/machine/pckeybrd.cpp b/src/devices/machine/pckeybrd.cpp index 61bc1c5ce0e..7062c59c8fa 100644 --- a/src/devices/machine/pckeybrd.cpp +++ b/src/devices/machine/pckeybrd.cpp @@ -286,7 +286,7 @@ pc_keyboard_device::pc_keyboard_device(const machine_config &mconfig, const char pc_keyboard_device::pc_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, type, tag, owner, clock), - m_ioport(*this, ":pc_keyboard_%u", 0), + m_ioport(*this, "pc_keyboard_%u", 0), m_out_keypress_func(*this) { } @@ -1117,7 +1117,7 @@ INPUT_PORTS_START( pc_keyboard ) PORT_BIT ( 0xff80, 0x0000, IPT_UNUSED ) INPUT_PORTS_END -INPUT_PORTS_START( at_keyboard ) +static INPUT_PORTS_START( at_keyboard ) PORT_START("pc_keyboard_0") PORT_BIT ( 0x0001, 0x0000, IPT_UNUSED ) /* unused scancode 0 */ PORT_BIT(0x0002, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC) /* Esc 01 81 */ @@ -1242,6 +1242,18 @@ INPUT_PORTS_START( at_keyboard ) PORT_BIT ( 0xfffe, 0x0000, IPT_UNUSED ) INPUT_PORTS_END + +ioport_constructor pc_keyboard_device::device_input_ports() const +{ + return INPUT_PORTS_NAME(pc_keyboard); +} + + +ioport_constructor at_keyboard_device::device_input_ports() const +{ + return INPUT_PORTS_NAME(at_keyboard); +} + /*************************************************************************** Inputx stuff ***************************************************************************/ |
