#pypp 0 // Iris: micro-kernel for a capability-based operating system. // boot-programs/keys.hhp: Keycode definitions. // Copyright 2009 Bas Wijnen // // 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 3 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, see . #ifndef __KEYS_HH #define __KEYS_HH namespace Key: enum codes: N0 = '0' N1 = '1' N2 = '2' N3 = '3' N4 = '4' N5 = '5' N6 = '6' N7 = '7' N8 = '8' N9 = '9' A = 'a' B = 'b' C = 'c' D = 'd' E = 'e' F = 'f' G = 'g' H = 'h' I = 'i' J = 'j' K = 'k' L = 'l' M = 'm' N = 'n' O = 'o' P = 'p' Q = 'q' R = 'r' S = 's' T = 't' U = 'u' V = 'v' W = 'w' X = 'x' Y = 'y' Z = 'z' ESCAPE = 27 ENTER = '\n' TAB = '\t' COMMA = ',' PERIOD = '.' SLASH = '/' BACKSLASH = '\\' SEMICOLON = ';' QUOTE = '\'' BACKQUOTE = '`' OPEN_BRACKET = '[' CLOSE_BRACKET = ']' MINUS = '-' EQUALS = '=' BACKSPACE = 8 HOME = 11 DELETE = 127 SPACE = ' ' KP_0 = 0x100 KP_1 KP_2 KP_3 KP_4 KP_5 KP_6 KP_7 KP_8 KP_9 KP_PERIOD = '.' + 0x100 KP_ENTER = '\n' + 0x100 KP_PLUS = '+' + 0x100 KP_MINUS = '-' + 0x100 KP_MULTIPLY = '*' + 0x100 KP_DIVIDE = '/' + 0x100 FN = 0x200 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F20 F21 F22 F23 F24 POWER_OFF SLEEP WAKE_UP VOLUME_UP VOLUME_DOWN UP DOWN LEFT RIGHT INSERT END PAGE_UP PAGE_DOWN PRINT_SCREEN PAUSE CAPS_LOCK NUM_LOCK SCROLL_LOCK LEFT_SHIFT RIGHT_SHIFT LEFT_CONTROL RIGHT_CONTROL LEFT_ALT RIGHT_ALT LEFT_LOGO RIGHT_LOGO MENU SPECIAL #endif