summaryrefslogtreecommitdiff
path: root/arm9/include/kbd81.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/include/kbd81.h')
-rw-r--r--arm9/include/kbd81.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/arm9/include/kbd81.h b/arm9/include/kbd81.h
new file mode 100644
index 0000000..b4e3d62
--- /dev/null
+++ b/arm9/include/kbd81.h
@@ -0,0 +1,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 */