diff options
Diffstat (limited to 'src/mame/machine/pcd_kbd.h')
-rw-r--r-- | src/mame/machine/pcd_kbd.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mame/machine/pcd_kbd.h b/src/mame/machine/pcd_kbd.h index 2fce6e8e31e..46c1de5b739 100644 --- a/src/mame/machine/pcd_kbd.h +++ b/src/mame/machine/pcd_kbd.h @@ -5,15 +5,13 @@ #pragma once -#define MCFG_PCD_KEYBOARD_OUT_TX_HANDLER(_devcb) \ - downcast<pcd_keyboard_device &>(*device).set_out_tx_handler(DEVCB_##_devcb); class pcd_keyboard_device : public device_t { public: pcd_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - template <class Object> devcb_base &set_out_tx_handler(Object &&cb) { return m_out_tx_handler.set_callback(std::forward<Object>(cb)); } + auto out_tx_handler() { return m_out_tx_handler.bind(); } DECLARE_WRITE_LINE_MEMBER( t0_w ); |