diff options
author | 2015-09-30 17:21:14 +0200 | |
---|---|---|
committer | 2015-09-30 17:21:14 +0200 | |
commit | 1fc48ce120a376c288daeeed98daccecf1b60d7b (patch) | |
tree | 72cefcede17f3a27fa8256b43bfac9756db82312 /src/mess/machine/qimi.h | |
parent | 87a576c55501bd7125b51ca786a010229669df0e (diff) |
move mess into mame (nw)
Diffstat (limited to 'src/mess/machine/qimi.h')
-rw-r--r-- | src/mess/machine/qimi.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/src/mess/machine/qimi.h b/src/mess/machine/qimi.h deleted file mode 100644 index bf513da9042..00000000000 --- a/src/mess/machine/qimi.h +++ /dev/null @@ -1,78 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Curt Coder, Phill Harvey-Smith -/********************************************************************** - - QJump/Quanta QL Internal Mouse Interface emulation - -**********************************************************************/ - -#pragma once - -#ifndef __QIMI__ -#define __QIMI__ - -#include "emu.h" - - - -//************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_QIMI_EXTINT_CALLBACK(_write) \ - devcb = &qimi_t::set_exting_wr_callback(*device, DEVCB_##_write); - - - -//************************************************************************** -// TYPE DEFINITIONS -//************************************************************************** - -// ======================> qimi_t - -class qimi_t : public device_t -{ -public: - // construction/destruction - qimi_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - - template<class _Object> static devcb_base &set_exting_wr_callback(device_t &device, _Object object) { return downcast<qimi_t &>(device).m_write_extint.set_callback(object); } - - // optional information overrides - virtual ioport_constructor device_input_ports() const; - - UINT8 read(address_space &space, offs_t offset, UINT8 data); - DECLARE_WRITE8_MEMBER( write ); - - DECLARE_INPUT_CHANGED_MEMBER( mouse_x_changed ); - DECLARE_INPUT_CHANGED_MEMBER( mouse_y_changed ); - -protected: - // device-level overrides - virtual void device_start(); - virtual void device_reset(); - -private: - enum - { - ST_Y_DIR = 0x01, - ST_X_INT = 0x04, - ST_X_DIR = 0x10, - ST_Y_INT = 0x20 - }; - - devcb_write_line m_write_extint; - - required_ioport m_buttons; - - UINT8 m_status; - bool m_extint_en; -}; - - -// device type definition -extern const device_type QIMI; - - - -#endif |