summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/spectrum/d40.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2024-10-18 00:47:56 +1100
committer Vas Crabb <vas@vastheman.com>2024-10-18 00:47:56 +1100
commit5f4e3730d9dc978730a53e6369312b931c250390 (patch)
tree7423d8cd2adefbf1252d6d6b67ff067d7f7b3784 /src/devices/bus/spectrum/d40.cpp
parent61f3af53d0c9f083656f9b68e172302274866f6b (diff)
emu/ioport.h: Made syntax for configuring callbacks more consistent.
You now use FUNC or NAME to configure port field callbacks, like you would when configuring other kinds of callbacks. This has a number of benefits: * No need to remember different syntax for port field callbacks, and more approachable for new contributors. * May use function templates with multiple arugments using NAME((&...)) syntax without resorting to another layer of macros. * May use non-member functions on the odd chance it's useful. * More natural syntax for referring to member functions.
Diffstat (limited to 'src/devices/bus/spectrum/d40.cpp')
-rw-r--r--src/devices/bus/spectrum/d40.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/bus/spectrum/d40.cpp b/src/devices/bus/spectrum/d40.cpp
index f7c5f5c28ed..50927561ac8 100644
--- a/src/devices/bus/spectrum/d40.cpp
+++ b/src/devices/bus/spectrum/d40.cpp
@@ -32,7 +32,7 @@ DEFINE_DEVICE_TYPE(SPECTRUM_D80V2, spectrum_d80v2_device, "spectrum_d80v2", "Did
INPUT_PORTS_START(d40)
PORT_START("BUTTON")
- PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Snapshot Button") PORT_CODE(KEYCODE_MINUS_PAD) PORT_CHANGED_MEMBER(DEVICE_SELF, spectrum_d40base_device, snapshot_button, 0)
+ PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Snapshot Button") PORT_CODE(KEYCODE_MINUS_PAD) PORT_CHANGED_MEMBER(DEVICE_SELF, FUNC(spectrum_d40base_device::snapshot_button), 0)
PORT_START("JOY")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_8WAY