summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/c64/4dxh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/c64/4dxh.h')
-rw-r--r--src/devices/bus/c64/4dxh.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/devices/bus/c64/4dxh.h b/src/devices/bus/c64/4dxh.h
new file mode 100644
index 00000000000..3e99406ab89
--- /dev/null
+++ b/src/devices/bus/c64/4dxh.h
@@ -0,0 +1,50 @@
+// license:BSD-3-Clause
+// copyright-holders:smf
+/**********************************************************************
+
+ The Digital Excess & Hitmen 4-Player Joystick adapter emulation
+
+**********************************************************************/
+
+#pragma once
+
+#ifndef __C64_4DXH__
+#define __C64_4DXH__
+
+
+#include "emu.h"
+#include "user.h"
+
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> c64_4dxh_device
+
+class c64_4dxh_device : public device_t,
+ public device_pet_user_port_interface
+{
+public:
+ // construction/destruction
+ c64_4dxh_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // optional information overrides
+ virtual ioport_constructor device_input_ports() const;
+
+ // device_pet_user_port_interface overrides
+ virtual WRITE_LINE_MEMBER( input_4 ) { output_6(state); }
+ virtual WRITE_LINE_MEMBER( input_6 ) { output_4(state); }
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+};
+
+
+// device type definition
+extern const device_type C64_4DXH;
+
+
+#endif