summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/msm6253.h
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-12-18 20:18:53 +0100
committer mooglyguy <therealmogminer@gmail.com>2018-12-18 20:19:18 +0100
commit6b6c476f83fd7544b8863d8e43b4ee7d0d5681c7 (patch)
treec1e003716281cb4afd18637f52c8597783e86764 /src/devices/machine/msm6253.h
parent45f5d76b332956961c0431a2ba31d44151f62a69 (diff)
-bus/ep64/exp: Removed MCFG macros. [Ryan Holtz]
-sound/awacs, dave, es5503, i5000, k005289, mas3507d, segapcm, ta7630: Removed MCFG macros. [Ryan Holtz] -drivers/40love, buggychl, ep64, flstory, mquake, msisaac, nemesis, rabbit, segahang, segaorun, segaxbd, segaybd, tmmjprd: Removed MACHINE_CONFIG macros. [Ryan Holtz]
Diffstat (limited to 'src/devices/machine/msm6253.h')
-rw-r--r--src/devices/machine/msm6253.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/devices/machine/msm6253.h b/src/devices/machine/msm6253.h
index 4f617b29a4e..25a17585221 100644
--- a/src/devices/machine/msm6253.h
+++ b/src/devices/machine/msm6253.h
@@ -72,6 +72,15 @@ public:
// configuration
template <unsigned P> void set_input_tag(const char *tag) { m_analog_ports[P].set_tag(tag); }
template <unsigned P, typename... T> void set_input_cb(T &&... args) { m_analog_input_cb[P] = port_read_delegate(std::forward<T>(args)...); }
+ template <unsigned P> void set_input_cb(port_read_delegate callback) { m_analog_input_cb[P] = callback; }
+ template <unsigned P, class FunctionClass> void set_input_cb(const char *devname, ioport_value (FunctionClass::*callback)(), const char *name)
+ {
+ set_input_cb<P>(port_read_delegate(callback, name, devname, static_cast<FunctionClass *>(nullptr)));
+ }
+ template <unsigned P, class FunctionClass> void set_input_cb(ioport_value (FunctionClass::*callback)(), const char *name)
+ {
+ set_input_cb<P>(port_read_delegate(callback, name, nullptr, static_cast<FunctionClass *>(nullptr)));
+ }
// write handlers
WRITE8_MEMBER(address_w);