diff options
Diffstat (limited to 'src/mame/machine/abc80kb.h')
-rw-r--r-- | src/mame/machine/abc80kb.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mame/machine/abc80kb.h b/src/mame/machine/abc80kb.h index 7e26881183d..6e097f61142 100644 --- a/src/mame/machine/abc80kb.h +++ b/src/mame/machine/abc80kb.h @@ -19,16 +19,6 @@ #define ABC80_KEYBOARD_TAG "abc80kb" - -//************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_ABC80_KEYBOARD_KEYDOWN_CALLBACK(_write) \ - downcast<abc80_keyboard_device &>(*device).set_keydown_wr_callback(DEVCB_##_write); - - - //************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -41,7 +31,7 @@ public: // construction/destruction abc80_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - template <class Object> devcb_base &set_keydown_wr_callback(Object &&cb) { return m_write_keydown.set_callback(std::forward<Object>(cb)); } + auto keydown_wr_callback() { return m_write_keydown.bind(); } uint8_t data_r(); |