summaryrefslogtreecommitdiff
path: root/arm9/include/kbd81.h
blob: b4e3d629ed686a09de9a31ea2bdbc8f3a2cc4bf4 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
   ds81 - Nintendo DS ZX81 emulator.

   Copyright (C) 2006  Ian Cowburn
   
   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 2
   of the License, or (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  
   $Id$
*/
#ifndef DS81_KBD81_H
#define DS81_KBD81_H

typedef enum
{
    KBD_1,
    KBD_2,
    KBD_3,
    KBD_4,
    KBD_5,
    KBD_6,
    KBD_7,
    KBD_8,
    KBD_9,
    KBD_0,
    KBD_Q,
    KBD_W,
    KBD_E,
    KBD_R,
    KBD_T,
    KBD_Y,
    KBD_U,
    KBD_I,
    KBD_O,
    KBD_P,
    KBD_A,
    KBD_S,
    KBD_D,
    KBD_F,
    KBD_G,
    KBD_H,
    KBD_J,
    KBD_K,
    KBD_L,
    KBD_NEWLINE,
    KBD_SHIFT,
    KBD_Z,
    KBD_X,
    KBD_C,
    KBD_V,
    KBD_B,
    KBD_N,
    KBD_M,
    KBD_PERIOD,
    KBD_SPACE
} ZX81_Key;

void		KBD_Reset(void);
void		KBD_Display(const char *text);
void		KBD_Scan(void);
ZX81_Key	KBD_GetKey(void);
void		KBD_MapKey(KEYPAD_BITS pad, ZX81_Key key);
void		KBD_Probe(int scan);

#endif	/* DS81_KBD81_H */