summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ie15_kbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ie15_kbd.h')
-rw-r--r--src/devices/machine/ie15_kbd.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/devices/machine/ie15_kbd.h b/src/devices/machine/ie15_kbd.h
index d0d38286b8d..9b7a4d802e4 100644
--- a/src/devices/machine/ie15_kbd.h
+++ b/src/devices/machine/ie15_kbd.h
@@ -5,18 +5,6 @@
#pragma once
-
-/***************************************************************************
- DEVICE CONFIGURATION MACROS
-***************************************************************************/
-
-#define MCFG_IE15_KEYBOARD_CB(_devcb) \
- downcast<ie15_keyboard_device &>(*device).set_keyboard_callback(DEVCB_##_devcb);
-
-/***************************************************************************
- FUNCTION PROTOTYPES
-***************************************************************************/
-
class ie15_keyboard_device : public device_t
{
public:
@@ -47,7 +35,7 @@ public:
ie15_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> devcb_base &set_keyboard_callback(Object &&cb) { return m_keyboard_cb.set_callback(std::forward<Object>(cb)); }
+ auto keyboard_cb() { return m_keyboard_cb.bind(); }
protected:
ie15_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);