diff options
Diffstat (limited to 'src/devices/bus/vtech/ioexp/joystick.cpp')
-rw-r--r-- | src/devices/bus/vtech/ioexp/joystick.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/bus/vtech/ioexp/joystick.cpp b/src/devices/bus/vtech/ioexp/joystick.cpp index f73bf722be7..7570deca3b5 100644 --- a/src/devices/bus/vtech/ioexp/joystick.cpp +++ b/src/devices/bus/vtech/ioexp/joystick.cpp @@ -17,7 +17,7 @@ // DEVICE DEFINITIONS //************************************************************************** -const device_type JOYSTICK_INTERFACE = device_creator<joystick_interface_device>; +DEFINE_DEVICE_TYPE(VTECH_JOYSTICK_INTERFACE, vtech_joystick_interface_device, "vtech_joystick", "Laser/VZ Joystick Interface") //------------------------------------------------- // input_ports - device-specific input ports @@ -51,7 +51,7 @@ static INPUT_PORTS_START( joystick ) PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) INPUT_PORTS_END -ioport_constructor joystick_interface_device::device_input_ports() const +ioport_constructor vtech_joystick_interface_device::device_input_ports() const { return INPUT_PORTS_NAME( joystick ); } @@ -62,12 +62,12 @@ ioport_constructor joystick_interface_device::device_input_ports() const //************************************************************************** //------------------------------------------------- -// joystick_interface_device - constructor +// vtech_joystick_interface_device - constructor //------------------------------------------------- -joystick_interface_device::joystick_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, JOYSTICK_INTERFACE, "Laser/VZ Joystick Interface", tag, owner, clock, "joystick", __FILE__), - device_ioexp_interface(mconfig, *this), +vtech_joystick_interface_device::vtech_joystick_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : + device_t(mconfig, VTECH_JOYSTICK_INTERFACE, tag, owner, clock), + device_vtech_ioexp_interface(mconfig, *this), m_joy0(*this, "joystick_0"), m_joy0_arm(*this, "joystick_0_arm"), m_joy1(*this, "joystick_1"), @@ -79,7 +79,7 @@ joystick_interface_device::joystick_interface_device(const machine_config &mconf // device_start - device-specific startup //------------------------------------------------- -void joystick_interface_device::device_start() +void vtech_joystick_interface_device::device_start() { } @@ -87,9 +87,9 @@ void joystick_interface_device::device_start() // device_reset - device-specific reset //------------------------------------------------- -void joystick_interface_device::device_reset() +void vtech_joystick_interface_device::device_reset() { - m_slot->m_io->install_read_handler(0x20, 0x2f, read8_delegate(FUNC(joystick_interface_device::joystick_r), this)); + io_space().install_read_handler(0x20, 0x2f, read8_delegate(FUNC(vtech_joystick_interface_device::joystick_r), this)); } @@ -97,7 +97,7 @@ void joystick_interface_device::device_reset() // IMPLEMENTATION //************************************************************************** -READ8_MEMBER( joystick_interface_device::joystick_r ) +READ8_MEMBER( vtech_joystick_interface_device::joystick_r ) { uint8_t data = 0xff; |