summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/teleprinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/teleprinter.cpp')
-rw-r--r--src/mame/machine/teleprinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/teleprinter.cpp b/src/mame/machine/teleprinter.cpp
index 1bd3d21e07f..6cbc53090cf 100644
--- a/src/mame/machine/teleprinter.cpp
+++ b/src/mame/machine/teleprinter.cpp
@@ -218,8 +218,8 @@ MACHINE_CONFIG_START(teleprinter_device::device_add_mconfig)
MCFG_SCREEN_SIZE(teleprinter_device::WIDTH*8, teleprinter_device::HEIGHT*8)
MCFG_SCREEN_VISIBLE_AREA(0, teleprinter_device::WIDTH*8-1, 0, teleprinter_device::HEIGHT*8-1)
MCFG_SCREEN_UPDATE_DEVICE(DEVICE_SELF, teleprinter_device, tp_update)
- MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0)
- MCFG_GENERIC_KEYBOARD_CB(PUT(generic_terminal_device, kbd_put))
+ generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, "keyboard", 0));
+ keyboard.set_keyboard_callback(FUNC(generic_terminal_device::kbd_put));
SPEAKER(config, "bell").front_center();
MCFG_DEVICE_ADD("beeper", BEEP, 2'000)