blob: 95759e5fcff63817a33a000fe448ebedc89e4ad2 (
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: GPL-2.0+
// copyright-holders: Dirk Best
/***************************************************************************
VTech Laser Lightpen Interface
***************************************************************************/
#ifndef MAME_BUS_VTECH_IOEXP_LPEN_H
#define MAME_BUS_VTECH_IOEXP_LPEN_H
#pragma once
#include "ioexp.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> vtech_lpen_interface_device
class vtech_lpen_interface_device : public vtech_ioexp_device
{
public:
// construction/destruction
vtech_lpen_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
static constexpr feature_type unemulated_features() { return feature::CONTROLS; }
protected:
virtual void device_start() override;
virtual void io_map(address_map &map) override;
private:
uint8_t lpen_r(offs_t offset);
};
// device type definition
DECLARE_DEVICE_TYPE(VTECH_LPEN_INTERFACE, vtech_lpen_interface_device)
#endif // MAME_BUS_VTECH_IOEXP_LPEN_H
|