summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/coleco/hand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/coleco/hand.cpp')
-rw-r--r--src/devices/bus/coleco/hand.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/bus/coleco/hand.cpp b/src/devices/bus/coleco/hand.cpp
index 9e9f7610dd4..c11652b5ad5 100644
--- a/src/devices/bus/coleco/hand.cpp
+++ b/src/devices/bus/coleco/hand.cpp
@@ -15,10 +15,10 @@
// DEVICE DEFINITIONS
//**************************************************************************
-const device_type COLECO_HAND_CONTROLLER = device_creator<coleco_hand_controller_t>;
+DEFINE_DEVICE_TYPE(COLECO_HAND_CONTROLLER, coleco_hand_controller_device, "coleco_hand", "ColecoVision Hand Controller")
-CUSTOM_INPUT_MEMBER( coleco_hand_controller_t::keypad_r )
+CUSTOM_INPUT_MEMBER( coleco_hand_controller_device::keypad_r )
{
uint8_t data = 0xf;
uint16_t keypad = m_io_keypad->read();
@@ -50,7 +50,7 @@ static INPUT_PORTS_START( coleco_hand_controller )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )
PORT_START("COMMON1")
- PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, coleco_hand_controller_t, keypad_r, nullptr)
+ PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, coleco_hand_controller_device, keypad_r, nullptr)
PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )
@@ -75,7 +75,7 @@ INPUT_PORTS_END
// input_ports - device-specific input ports
//-------------------------------------------------
-ioport_constructor coleco_hand_controller_t::device_input_ports() const
+ioport_constructor coleco_hand_controller_device::device_input_ports() const
{
return INPUT_PORTS_NAME( coleco_hand_controller );
}
@@ -87,11 +87,11 @@ ioport_constructor coleco_hand_controller_t::device_input_ports() const
//**************************************************************************
//-------------------------------------------------
-// coleco_hand_controller_t - constructor
+// coleco_hand_controller_device - constructor
//-------------------------------------------------
-coleco_hand_controller_t::coleco_hand_controller_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- device_t(mconfig, COLECO_HAND_CONTROLLER, "ColecoVision Hand Controller", tag, owner, clock, "coleco_hand", __FILE__),
+coleco_hand_controller_device::coleco_hand_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+ device_t(mconfig, COLECO_HAND_CONTROLLER, tag, owner, clock),
device_colecovision_control_port_interface(mconfig, *this),
m_io_common0(*this, "COMMON0"),
m_io_common1(*this, "COMMON1"),
@@ -104,7 +104,7 @@ coleco_hand_controller_t::coleco_hand_controller_t(const machine_config &mconfig
// device_start - device-specific startup
//-------------------------------------------------
-void coleco_hand_controller_t::device_start()
+void coleco_hand_controller_device::device_start()
{
// state saving
save_item(NAME(m_common0));
@@ -116,7 +116,7 @@ void coleco_hand_controller_t::device_start()
// joy_r - joystick read
//-------------------------------------------------
-uint8_t coleco_hand_controller_t::joy_r()
+uint8_t coleco_hand_controller_device::joy_r()
{
uint8_t data = 0x7f;