blob: dad8200d06b853c35329ec90513a8907d785139b (
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
44
45
46
47
|
// license: GPL-2.0+
// copyright-holders: Dirk Best
/***************************************************************************
Einstein Mouse
***************************************************************************/
#ifndef MAME_BUS_EINSTEIN_USERPORT_MOUSE_H
#define MAME_BUS_EINSTEIN_USERPORT_MOUSE_H
#pragma once
#include "userport.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> einstein_mouse_device
class einstein_mouse_device : public device_t, public device_einstein_userport_interface
{
public:
// construction/destruction
einstein_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
virtual ioport_constructor device_input_ports() const override;
virtual void device_start() override;
virtual uint8_t read() override;
private:
required_ioport m_mouse_b;
required_ioport m_mouse_x;
required_ioport m_mouse_y;
int m_x;
int m_y;
};
// device type definition
DECLARE_DEVICE_TYPE(EINSTEIN_MOUSE, einstein_mouse_device)
#endif // MAME_BUS_EINSTEIN_USERPORT_MOUSE_H
|