summaryrefslogtreecommitdiffstats
path: root/src/mame/machine/kay_kbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/kay_kbd.h')
-rw-r--r--src/mame/machine/kay_kbd.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mame/machine/kay_kbd.h b/src/mame/machine/kay_kbd.h
index 689fdb1e32e..4274f7f3199 100644
--- a/src/mame/machine/kay_kbd.h
+++ b/src/mame/machine/kay_kbd.h
@@ -8,10 +8,6 @@
#include "sound/spkrdev.h"
-#define MCFG_KAYPRO10KBD_RXD_CB(cb) \
- devcb = &downcast<kaypro_10_keyboard_device &>(*device).set_rxd_cb(DEVCB_##cb);
-
-
class kaypro_10_keyboard_device : public device_t
{
public:
@@ -19,9 +15,9 @@ public:
machine_config const &mconfig,
char const *tag,
device_t *owner,
- std::uint32_t clock);
+ std::uint32_t clock = 0);
- template <class Object> devcb_base &set_rxd_cb(Object &&cb) { return m_rxd_cb.set_callback(std::forward<Object>(cb)); }
+ auto rxd_cb() { return m_rxd_cb.bind(); }
DECLARE_WRITE_LINE_MEMBER(txd_w) { m_txd = state ? 1U : 0U; }