summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/abc80kb.h
diff options
context:
space:
mode:
author Curt Coder <curtcoder@mail.com>2014-03-19 14:46:10 +0000
committer Curt Coder <curtcoder@mail.com>2014-03-19 14:46:10 +0000
commit3c81060f84e205128d128e67d828c9eb65fc5d3a (patch)
treeb1d04bc80b5265d65b896fe59ea0ce96b6c47f80 /src/mess/machine/abc80kb.h
parent5e0ddf29582970783c3d25dfabef090280170eec (diff)
(MESS) Cleaned up devcb2. (nw)
Diffstat (limited to 'src/mess/machine/abc80kb.h')
-rw-r--r--src/mess/machine/abc80kb.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mess/machine/abc80kb.h b/src/mess/machine/abc80kb.h
index b32b5942b04..377800a975e 100644
--- a/src/mess/machine/abc80kb.h
+++ b/src/mess/machine/abc80kb.h
@@ -31,9 +31,8 @@
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
-#define MCFG_ABC80_KEYBOARD_ADD(_keydown) \
- MCFG_DEVICE_ADD(ABC80_KEYBOARD_TAG, ABC80_KEYBOARD, 0) \
- downcast<abc80_keyboard_device *>(device)->set_callback(DEVCB2_##_keydown);
+#define MCFG_ABC80_KEYBOARD_KEYDOWN_CALLBACK(_write) \
+ devcb = &abc80_keyboard_device::set_keydown_wr_callback(*device, DEVCB2_##_write);
@@ -49,7 +48,7 @@ public:
// construction/destruction
abc80_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
- template<class _keydown> void set_callback(_keydown keydown) { m_write_keydown.set_callback(keydown); }
+ template<class _Object> static devcb2_base &set_keydown_wr_callback(device_t &device, _Object object) { return downcast<abc80_keyboard_device &>(device).m_write_keydown.set_callback(object); }
// optional information overrides
virtual const rom_entry *device_rom_region() const;