summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/wy50kb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/wy50kb.h')
-rw-r--r--src/mame/machine/wy50kb.h26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/mame/machine/wy50kb.h b/src/mame/machine/wy50kb.h
index 8b9afbe0490..399596432f8 100644
--- a/src/mame/machine/wy50kb.h
+++ b/src/mame/machine/wy50kb.h
@@ -6,16 +6,15 @@
#pragma once
-class wy50_keyboard_device : public device_t
+class wyse_parallel_keyboard_device : public device_t
{
public:
- wy50_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
-
void scan_w(u8 address);
DECLARE_READ_LINE_MEMBER(sense_r);
protected:
- virtual ioport_constructor device_input_ports() const override;
+ wyse_parallel_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner);
+
virtual void device_start() override;
private:
@@ -24,6 +23,25 @@ private:
u8 m_address;
};
+class wy50_keyboard_device : public wyse_parallel_keyboard_device
+{
+public:
+ wy50_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
+
+protected:
+ virtual ioport_constructor device_input_ports() const override;
+};
+
+class wy100_keyboard_device : public wyse_parallel_keyboard_device
+{
+public:
+ wy100_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
+
+protected:
+ virtual ioport_constructor device_input_ports() const override;
+};
+
DECLARE_DEVICE_TYPE(WY50_KEYBOARD, wy50_keyboard_device)
+DECLARE_DEVICE_TYPE(WY100_KEYBOARD, wy100_keyboard_device)
#endif // MAME_MACHINE_WY50KB_H