summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ticket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ticket.h')
-rw-r--r--src/devices/machine/ticket.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/devices/machine/ticket.h b/src/devices/machine/ticket.h
index 6157b6c27db..813e27b95c1 100644
--- a/src/devices/machine/ticket.h
+++ b/src/devices/machine/ticket.h
@@ -19,7 +19,7 @@
// device type definition
DECLARE_DEVICE_TYPE(TICKET_DISPENSER, ticket_dispenser_device)
-
+DECLARE_DEVICE_TYPE(HOPPER, hopper_device)
//**************************************************************************
@@ -60,7 +60,7 @@ class ticket_dispenser_device : public device_t
public:
// construction/destruction
ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, const attotime &period, uint8_t motor_sense, uint8_t status_sense)
- : ticket_dispenser_device(mconfig, tag, owner, 0)
+ : ticket_dispenser_device(mconfig, tag, owner)
{
set_period(period);
set_senses(motor_sense, status_sense, false);
@@ -82,6 +82,8 @@ public:
DECLARE_WRITE_LINE_MEMBER( motor_w );
protected:
+ ticket_dispenser_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0);
+
// device-level overrides
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
@@ -104,4 +106,17 @@ protected:
output_finder<> m_output;
};
+class hopper_device : public ticket_dispenser_device
+{
+public:
+ // construction/destruction
+ hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, const attotime &period, uint8_t motor_sense, uint8_t status_sense)
+ : hopper_device(mconfig, tag, owner)
+ {
+ set_period(period);
+ set_senses(motor_sense, status_sense, true);
+ }
+ hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+};
+
#endif // MAME_MACHINE_TICKET_H