From 9ef67264f5ed15b2bbf8ac4f18228b7d47ef0ccc Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 15 Aug 2006 23:44:02 +0000 Subject: Development checkin --- include/kbd81.h | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 include/kbd81.h (limited to 'include/kbd81.h') diff --git a/include/kbd81.h b/include/kbd81.h new file mode 100644 index 0000000..b4e3d62 --- /dev/null +++ b/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 */ -- cgit v1.2.3