diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2012-02-10 14:25:38 +0100 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2012-02-10 14:25:38 +0100 |
| commit | a5d7e68af96d9b62821d8fd47f5039c5bae5d421 (patch) | |
| tree | ab7d1a70312afb74dc7184d8b269b08f332f4b74 /c64/kbd.h | |
added original sam_player code
Diffstat (limited to 'c64/kbd.h')
| -rw-r--r-- | c64/kbd.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/c64/kbd.h b/c64/kbd.h new file mode 100644 index 0000000..13df996 --- /dev/null +++ b/c64/kbd.h @@ -0,0 +1,90 @@ +// kbd.h
+//
+// 20060803 Markku Alén
+
+#ifndef __KBD_H__
+#define __KBD_H__ 1
+
+#define KEY_COMMODORE 1
+
+#define KEY_LEFT_SHIFT 3
+#define KEY_RIGHT_SHIFT 4
+#define KEY_VER_CURSOR 5
+#define KEY_HOR_CURSOR 6
+
+#define KEY_F1 28
+#define KEY_F3 29
+#define KEY_F5 30
+#define KEY_F7 31
+
+#define KEY_CTRL '\x09'
+#define KEY_INST_DEL '\x07'
+#define KEY_CLR_HOME '\x08'
+#define KEY_RUN_STOP '\x1b'
+#define KEY_RETURN '\x0d'
+#define KEY_SPACE ' '
+
+#define KEY_ARROW_LEFT '~'
+#define KEY_ARROW_UP '^'
+#define KEY_PLUS '+'
+#define KEY_MINUS '-'
+#define KEY_MULTIPLY '*'
+#define KEY_DIVIDE '/'
+#define KEY_COLON ':'
+#define KEY_SEMICOLON ';'
+#define KEY_EQUAL '='
+#define KEY_COMMA ','
+#define KEY_DOT '.'
+
+#define KEY_POUND '#'
+#define KEY_AT '@'
+
+#define KEY_NUMBER_0 '0'
+#define KEY_NUMBER_1 '1'
+#define KEY_NUMBER_2 '2'
+#define KEY_NUMBER_3 '3'
+#define KEY_NUMBER_4 '4'
+#define KEY_NUMBER_5 '5'
+#define KEY_NUMBER_6 '6'
+#define KEY_NUMBER_7 '7'
+#define KEY_NUMBER_8 '8'
+#define KEY_NUMBER_9 '9'
+
+#define KEY_LETTER_A 'A'
+#define KEY_LETTER_B 'B'
+#define KEY_LETTER_C 'C'
+#define KEY_LETTER_D 'D'
+#define KEY_LETTER_E 'E'
+#define KEY_LETTER_F 'F'
+#define KEY_LETTER_G 'G'
+#define KEY_LETTER_H 'H'
+#define KEY_LETTER_I 'I'
+#define KEY_LETTER_J 'J'
+#define KEY_LETTER_K 'K'
+#define KEY_LETTER_L 'L'
+#define KEY_LETTER_M 'M'
+#define KEY_LETTER_N 'N'
+#define KEY_LETTER_O 'O'
+#define KEY_LETTER_P 'P'
+#define KEY_LETTER_Q 'Q'
+#define KEY_LETTER_R 'R'
+#define KEY_LETTER_S 'S'
+#define KEY_LETTER_T 'T'
+#define KEY_LETTER_U 'U'
+#define KEY_LETTER_V 'V'
+#define KEY_LETTER_W 'W'
+#define KEY_LETTER_X 'X'
+#define KEY_LETTER_Y 'Y'
+#define KEY_LETTER_Z 'Z'
+
+void kbd_init(void);
+
+void kbd_down(int key);
+void kbd_up(int key);
+void kbd_push(int key, int down);
+
+void kbd_ascii_push(int c, int down);
+
+int kbd_data(int row_data);
+
+#endif
|
