blob: d531ade856a084f3cb650438d47c6f97e20c720c (
plain) (
tree)
|
|
// license:BSD-3-Clause
// copyright-holders:Angelo Salese
/***************************************************************************
Taito Yoke + Throttle Flight device
***************************************************************************/
#ifndef MAME_MACHINE_TAITO_YOKE_H
#define MAME_MACHINE_TAITO_YOKE_H
#pragma once
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
class taitoio_yoke_device : public device_t
{
public:
// construction/destruction
taitoio_yoke_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// I/O operations
u16 throttle_r();
u16 stickx_r();
u16 sticky_r();
DECLARE_READ_LINE_MEMBER( slot_up_r );
DECLARE_READ_LINE_MEMBER( slot_down_r );
DECLARE_READ_LINE_MEMBER( handle_left_r );
DECLARE_READ_LINE_MEMBER( handle_right_r );
DECLARE_READ_LINE_MEMBER( handle_up_r );
DECLARE_READ_LINE_MEMBER( handle_down_r );
protected:
virtual ioport_constructor device_input_ports() const override;
// device-level overrides
// virtual void device_validity_check(validity_checker &valid) const;
virtual void device_start() override;
virtual void device_reset() override;
private:
required_ioport m_stick_x;
required_ioport m_stick_y;
required_ioport m_throttle;
};
// device type definition
DECLARE_DEVICE_TYPE(TAITOIO_YOKE, taitoio_yoke_device)
#endif // MAME_MACHINE_TAITO_YOKE_H
|