blob: a5c21b025ab14c20846367b6203d9a5ea0396da1 (
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
|
/**********************************************************************
pckeybrd.h
PC-style keyboard emulation
This emulation is decoupled from the AT 8042 emulation used in the
IBM ATs and above
**********************************************************************/
#ifndef PCKEYBRD_H
#define PCKEYBRD_H
typedef enum
{
AT_KEYBOARD_TYPE_PC,
AT_KEYBOARD_TYPE_AT,
AT_KEYBOARD_TYPE_MF2
} AT_KEYBOARD_TYPE;
void at_keyboard_init(running_machine *machine, AT_KEYBOARD_TYPE type);
void at_keyboard_polling(void);
int at_keyboard_read(void);
void at_keyboard_write(running_machine *machine, UINT8 data);
void at_keyboard_reset(running_machine *machine);
void at_keyboard_set_scan_code_set(int set);
INPUT_PORTS_EXTERN( pc_keyboard );
INPUT_PORTS_EXTERN( at_keyboard );
#endif /* PCKEYBRD_H */
|