Anders Hörnfeldt
/
coniolib
Port of Conio.h
h/kbd.h@0:6c1bc9b3a347, 2010-04-19 (annotated)
- Committer:
- hornfeldt
- Date:
- Mon Apr 19 20:20:10 2010 +0000
- Revision:
- 0:6c1bc9b3a347
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hornfeldt | 0:6c1bc9b3a347 | 1 | /* |
hornfeldt | 0:6c1bc9b3a347 | 2 | kbd.h |
hornfeldt | 0:6c1bc9b3a347 | 3 | Keyboard codes descriptions (defines). |
hornfeldt | 0:6c1bc9b3a347 | 4 | Part of MicroVGA CONIO library / demo project |
hornfeldt | 0:6c1bc9b3a347 | 5 | Copyright (c) 2008-9 SECONS s.r.o., http://www.MicroVGA.com |
hornfeldt | 0:6c1bc9b3a347 | 6 | |
hornfeldt | 0:6c1bc9b3a347 | 7 | This program is free software: you can redistribute it and/or modify |
hornfeldt | 0:6c1bc9b3a347 | 8 | it under the terms of the GNU General Public License as published by |
hornfeldt | 0:6c1bc9b3a347 | 9 | the Free Software Foundation, either version 3 of the License, or |
hornfeldt | 0:6c1bc9b3a347 | 10 | (at your option) any later version. |
hornfeldt | 0:6c1bc9b3a347 | 11 | |
hornfeldt | 0:6c1bc9b3a347 | 12 | This program is distributed in the hope that it will be useful, |
hornfeldt | 0:6c1bc9b3a347 | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
hornfeldt | 0:6c1bc9b3a347 | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
hornfeldt | 0:6c1bc9b3a347 | 15 | GNU General Public License for more details. |
hornfeldt | 0:6c1bc9b3a347 | 16 | |
hornfeldt | 0:6c1bc9b3a347 | 17 | You should have received a copy of the GNU General Public License |
hornfeldt | 0:6c1bc9b3a347 | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
hornfeldt | 0:6c1bc9b3a347 | 19 | */ |
hornfeldt | 0:6c1bc9b3a347 | 20 | |
hornfeldt | 0:6c1bc9b3a347 | 21 | #define KB_ESC 0x1B |
hornfeldt | 0:6c1bc9b3a347 | 22 | #define KB_ENTER 0x0A |
hornfeldt | 0:6c1bc9b3a347 | 23 | #define KB_TAB 0x09 |
hornfeldt | 0:6c1bc9b3a347 | 24 | #define KB_BACK 0x08 |
hornfeldt | 0:6c1bc9b3a347 | 25 | #define KB_SPACE 0x20 |
hornfeldt | 0:6c1bc9b3a347 | 26 | |
hornfeldt | 0:6c1bc9b3a347 | 27 | #define KB_F1 (0X100|59) |
hornfeldt | 0:6c1bc9b3a347 | 28 | #define KB_F2 (0X100|60) |
hornfeldt | 0:6c1bc9b3a347 | 29 | #define KB_F3 (0X100|61) |
hornfeldt | 0:6c1bc9b3a347 | 30 | #define KB_F4 (0X100|62) |
hornfeldt | 0:6c1bc9b3a347 | 31 | #define KB_F5 (0X100|63) |
hornfeldt | 0:6c1bc9b3a347 | 32 | #define KB_F6 (0X100|64) |
hornfeldt | 0:6c1bc9b3a347 | 33 | #define KB_F7 (0X100|65) |
hornfeldt | 0:6c1bc9b3a347 | 34 | #define KB_F8 (0X100|66) |
hornfeldt | 0:6c1bc9b3a347 | 35 | #define KB_F9 (0X100|67) |
hornfeldt | 0:6c1bc9b3a347 | 36 | #define KB_F10 (0X100|68) |
hornfeldt | 0:6c1bc9b3a347 | 37 | #define KB_F11 (0X100|133) |
hornfeldt | 0:6c1bc9b3a347 | 38 | #define KB_F12 (0X100|134) |
hornfeldt | 0:6c1bc9b3a347 | 39 | |
hornfeldt | 0:6c1bc9b3a347 | 40 | #define KB_SHIFT_F1 (0X100|84) |
hornfeldt | 0:6c1bc9b3a347 | 41 | #define KB_SHIFT_F2 (0X100|85) |
hornfeldt | 0:6c1bc9b3a347 | 42 | #define KB_SHIFT_F3 (0X100|86) |
hornfeldt | 0:6c1bc9b3a347 | 43 | #define KB_SHIFT_F4 (0X100|87) |
hornfeldt | 0:6c1bc9b3a347 | 44 | #define KB_SHIFT_F5 (0X100|88) |
hornfeldt | 0:6c1bc9b3a347 | 45 | #define KB_SHIFT_F6 (0X100|89) |
hornfeldt | 0:6c1bc9b3a347 | 46 | #define KB_SHIFT_F7 (0X100|90) |
hornfeldt | 0:6c1bc9b3a347 | 47 | #define KB_SHIFT_F8 (0X100|91) |
hornfeldt | 0:6c1bc9b3a347 | 48 | #define KB_SHIFT_F9 (0X100|92) |
hornfeldt | 0:6c1bc9b3a347 | 49 | #define KB_SHIFT_F10 (0X100|93) |
hornfeldt | 0:6c1bc9b3a347 | 50 | #define KB_SHIFT_F11 (0X100|135) |
hornfeldt | 0:6c1bc9b3a347 | 51 | #define KB_SHIFT_F12 (0X100|136) |
hornfeldt | 0:6c1bc9b3a347 | 52 | |
hornfeldt | 0:6c1bc9b3a347 | 53 | #define KB_CTRL_F1 (0X100|94) |
hornfeldt | 0:6c1bc9b3a347 | 54 | #define KB_CTRL_F2 (0X100|95) |
hornfeldt | 0:6c1bc9b3a347 | 55 | #define KB_CTRL_F3 (0X100|96) |
hornfeldt | 0:6c1bc9b3a347 | 56 | #define KB_CTRL_F4 (0X100|97) |
hornfeldt | 0:6c1bc9b3a347 | 57 | #define KB_CTRL_F5 (0X100|98) |
hornfeldt | 0:6c1bc9b3a347 | 58 | #define KB_CTRL_F6 (0X100|99) |
hornfeldt | 0:6c1bc9b3a347 | 59 | #define KB_CTRL_F7 (0X100|100) |
hornfeldt | 0:6c1bc9b3a347 | 60 | #define KB_CTRL_F8 (0X100|101) |
hornfeldt | 0:6c1bc9b3a347 | 61 | #define KB_CTRL_F9 (0X100|102) |
hornfeldt | 0:6c1bc9b3a347 | 62 | #define KB_CTRL_F10 (0X100|103) |
hornfeldt | 0:6c1bc9b3a347 | 63 | #define KB_CTRL_F11 (0X100|137) |
hornfeldt | 0:6c1bc9b3a347 | 64 | #define KB_CTRL_F12 (0X100|138) |
hornfeldt | 0:6c1bc9b3a347 | 65 | |
hornfeldt | 0:6c1bc9b3a347 | 66 | #define KB_ALT_F1 (0X100|104) |
hornfeldt | 0:6c1bc9b3a347 | 67 | #define KB_ALT_F2 (0X100|105) |
hornfeldt | 0:6c1bc9b3a347 | 68 | #define KB_ALT_F3 (0X100|106) |
hornfeldt | 0:6c1bc9b3a347 | 69 | #define KB_ALT_F4 (0X100|107) |
hornfeldt | 0:6c1bc9b3a347 | 70 | #define KB_ALT_F5 (0X100|108) |
hornfeldt | 0:6c1bc9b3a347 | 71 | #define KB_ALT_F6 (0X100|109) |
hornfeldt | 0:6c1bc9b3a347 | 72 | #define KB_ALT_F7 (0X100|110) |
hornfeldt | 0:6c1bc9b3a347 | 73 | #define KB_ALT_F8 (0X100|111) |
hornfeldt | 0:6c1bc9b3a347 | 74 | #define KB_ALT_F9 (0X100|112) |
hornfeldt | 0:6c1bc9b3a347 | 75 | #define KB_ALT_F10 (0X100|113) |
hornfeldt | 0:6c1bc9b3a347 | 76 | #define KB_ALT_F11 (0X100|139) |
hornfeldt | 0:6c1bc9b3a347 | 77 | #define KB_ALT_F12 (0X100|140) |
hornfeldt | 0:6c1bc9b3a347 | 78 | |
hornfeldt | 0:6c1bc9b3a347 | 79 | #define KB_UP (0X100|72) |
hornfeldt | 0:6c1bc9b3a347 | 80 | #define KB_LEFT (0X100|75) |
hornfeldt | 0:6c1bc9b3a347 | 81 | #define KB_RIGHT (0X100|77) |
hornfeldt | 0:6c1bc9b3a347 | 82 | #define KB_DOWN (0X100|80) |
hornfeldt | 0:6c1bc9b3a347 | 83 | #define KB_HOME (0X100|71) |
hornfeldt | 0:6c1bc9b3a347 | 84 | #define KB_END (0X100|79) |
hornfeldt | 0:6c1bc9b3a347 | 85 | #define KB_PGUP (0X100|73) |
hornfeldt | 0:6c1bc9b3a347 | 86 | #define KB_PGDN (0X100|81) |
hornfeldt | 0:6c1bc9b3a347 | 87 | #define KB_INSERT (0X100|82) |
hornfeldt | 0:6c1bc9b3a347 | 88 | #define KB_DELETE (0X100|83) |
hornfeldt | 0:6c1bc9b3a347 | 89 | |
hornfeldt | 0:6c1bc9b3a347 | 90 | #define KB_CTRL_UP (0X100|132) |
hornfeldt | 0:6c1bc9b3a347 | 91 | #define KB_CTRL_LEFT (0X100|115) |
hornfeldt | 0:6c1bc9b3a347 | 92 | #define KB_CTRL_RIGHT (0X100|116) |
hornfeldt | 0:6c1bc9b3a347 | 93 | #define KB_CTRL_DOWN (0X100|145) |
hornfeldt | 0:6c1bc9b3a347 | 94 | #define KB_CTRL_HOME (0X100|119) |
hornfeldt | 0:6c1bc9b3a347 | 95 | #define KB_CTRL_END (0X100|117) |
hornfeldt | 0:6c1bc9b3a347 | 96 | #define KB_CTRL_PGUP (0X100|132) |
hornfeldt | 0:6c1bc9b3a347 | 97 | #define KB_CTRL_PGDN (0X100|118) |
hornfeldt | 0:6c1bc9b3a347 | 98 | #define KB_CTRL_INSERT (0X100|146) |
hornfeldt | 0:6c1bc9b3a347 | 99 | #define KB_CTRL_DELETE (0X100|147) |
hornfeldt | 0:6c1bc9b3a347 | 100 | |
hornfeldt | 0:6c1bc9b3a347 | 101 | #define KB_ALT_UP (0X100|152) |
hornfeldt | 0:6c1bc9b3a347 | 102 | #define KB_ALT_LEFT (0X100|155) |
hornfeldt | 0:6c1bc9b3a347 | 103 | #define KB_ALT_RIGHT (0X100|157) |
hornfeldt | 0:6c1bc9b3a347 | 104 | #define KB_ALT_DOWN (0X100|154) |
hornfeldt | 0:6c1bc9b3a347 | 105 | #define KB_ALT_HOME (0X100|151) |
hornfeldt | 0:6c1bc9b3a347 | 106 | #define KB_ALT_END (0X100|159) |
hornfeldt | 0:6c1bc9b3a347 | 107 | #define KB_ALT_PGUP (0X100|153) |
hornfeldt | 0:6c1bc9b3a347 | 108 | #define KB_ALT_PGDN (0X100|161) |
hornfeldt | 0:6c1bc9b3a347 | 109 | #define KB_ALT_INSERT (0X100|162) |
hornfeldt | 0:6c1bc9b3a347 | 110 | #define KB_ALT_DELETE (0X100|163) |