blob: e546de4922802e2fb36edd223cccf70d137426ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
/**********************************************************************
Nintendo Family Computer Coconuts Japan CJPC-102 Pachinko Controller
**********************************************************************/
#ifndef MAME_BUS_NES_CTRL_PACHINKO_H
#define MAME_BUS_NES_CTRL_PACHINKO_H
#pragma once
#include "joypad.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> nes_pachinko_device
class nes_pachinko_device : public nes_fcpadexp_device
{
public:
// construction/destruction
nes_pachinko_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
protected:
// device-level overrides
virtual ioport_constructor device_input_ports() const override;
virtual void set_latch() override;
private:
required_ioport m_trigger;
};
// device type definition
DECLARE_DEVICE_TYPE(NES_PACHINKO, nes_pachinko_device)
#endif // MAME_BUS_NES_CTRL_PACHINKO_H
|