From 22f6e038b26b38610d6f90d2242ded32ed938f49 Mon Sep 17 00:00:00 2001 From: MooglyGuy Date: Sun, 3 Feb 2019 03:32:48 +0100 Subject: -src/devices/machine: Random MCFG and MACHINE_CONFIG removals, nw --- src/devices/machine/keyboard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/devices/machine/keyboard.cpp') diff --git a/src/devices/machine/keyboard.cpp b/src/devices/machine/keyboard.cpp index 03e73f3ac05..52502597227 100644 --- a/src/devices/machine/keyboard.cpp +++ b/src/devices/machine/keyboard.cpp @@ -9,10 +9,10 @@ or for the case of a computer with an inbuilt (not serial) ascii keyboard. Example of usage in a driver. -In MACHINE_CONFIG +In the machine config function: - MCFG_DEVICE_ADD(KEYBOARD_TAG, GENERIC_KEYBOARD, 0) - MCFG_GENERIC_KEYBOARD_CB(WRITE8(*this, xxx_state, kbd_put)) + generic_keyboard_device &kbd(GENERIC_KEYBOARD(config, KEYBOARD_TAG, 0)); + kbd.set_keyboard_callback(FUNC(xxx_state::kbd_put)); In the code: -- cgit v1.2.3-70-g09d2