diff options
author | 2017-04-21 16:39:44 +0100 | |
---|---|---|
committer | 2017-04-21 16:42:52 +0100 | |
commit | 735ab4f3551840a5c642c2ae719fdd578e9fc154 (patch) | |
tree | 4a38c7ed92df805461a00cfeab5f0f634b30ed72 /src/devices/bus/electron/pwrjoy.h | |
parent | 5ed2b2aaaf11535acbc9b71d075210701073ba32 (diff) |
electron: Added Power Software joystick interface
Diffstat (limited to 'src/devices/bus/electron/pwrjoy.h')
-rw-r--r-- | src/devices/bus/electron/pwrjoy.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/devices/bus/electron/pwrjoy.h b/src/devices/bus/electron/pwrjoy.h new file mode 100644 index 00000000000..fba6b1b8c1e --- /dev/null +++ b/src/devices/bus/electron/pwrjoy.h @@ -0,0 +1,52 @@ +// license:BSD-3-Clause +// copyright-holders:Nigel Barnes +/********************************************************************** + + Power Software Joystick Interface + +**********************************************************************/ + +#pragma once + +#ifndef __ELECTRON_PWRJOY__ +#define __ELECTRON_PWRJOY__ + + +#include "exp.h" + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> electron_pwrjoy_device + +class electron_pwrjoy_device : + public device_t, + public device_electron_expansion_interface +{ +public: + // construction/destruction + electron_pwrjoy_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + + // optional information overrides + virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override; + + DECLARE_READ8_MEMBER(joystick_r); + +protected: + // device-level overrides + virtual void device_start() override; + virtual void device_reset() override; + +private: + required_memory_region m_exp_rom; + required_ioport m_joy; +}; + + +// device type definition +extern const device_type ELECTRON_PWRJOY; + + +#endif |