summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/rm380z.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/rm380z.cpp')
-rw-r--r--src/mame/drivers/rm380z.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/rm380z.cpp b/src/mame/drivers/rm380z.cpp
index 45df7b155b7..56373e7f788 100644
--- a/src/mame/drivers/rm380z.cpp
+++ b/src/mame/drivers/rm380z.cpp
@@ -269,8 +269,8 @@ MACHINE_CONFIG_START(rm380z_state::rm380z)
MCFG_FLOPPY_DRIVE_ADD("wd1771:1", rm380z_floppies, "sssd", floppy_image_device::default_floppy_formats)
/* keyboard */
- MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0)
- MCFG_GENERIC_KEYBOARD_CB(PUT(rm380z_state, keyboard_put))
+ generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, "keyboard", 0));
+ keyboard.set_keyboard_callback(FUNC(rm380z_state::keyboard_put));
MACHINE_CONFIG_END
MACHINE_CONFIG_START(rm380z_state::rm480z)
@@ -292,8 +292,8 @@ MACHINE_CONFIG_START(rm380z_state::rm480z)
// MCFG_PALETTE_ADD_MONOCHROME("palette")
/* keyboard */
-// MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0)
-// MCFG_GENERIC_KEYBOARD_CB(PUT(rm380z_state, keyboard_put))
+// generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, "keyboard", 0));
+// keyboard.set_keyboard_callback(FUNC(rm380z_state::keyboard_put));
MACHINE_CONFIG_END