blob: cdb848ed3f0895142d096e03a3c9889d523a25bb (
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
|
#ifndef AMIGAKBD_H
#define AMIGAKBD_H
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_AMIGA_KEYBOARD_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, AMIGAKBD, 0)
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> amigakbd_device
class amigakbd_device : public device_t
{
public:
// construction/destruction
amigakbd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// optional information overrides
virtual ioport_constructor device_input_ports() const;
DECLARE_INPUT_CHANGED_MEMBER( kbd_update );
protected:
// device-level overrides
virtual void device_start();
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
void kbd_sendscancode(UINT8 scancode );
private:
UINT8 *m_buf;
int m_buf_pos;
int m_cur_pos;
emu_timer *m_timer;
};
// device type definition
extern const device_type AMIGAKBD;
#endif /* AMIGAKBD_H */
|