Simon Glass | 3b3fd2e | 2012-04-17 09:01:29 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 1999-2002 Vojtech Pavlik |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms of the GNU General Public License version 2 as published by |
| 6 | * the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _LINUX_INPUT_H |
| 10 | #define _LINUX_INPUT_H |
| 11 | |
| 12 | /* |
| 13 | * Keys and buttons |
| 14 | * |
| 15 | * Most of the keys/buttons are modeled after USB HUT 1.12 |
| 16 | * (see http://www.usb.org/developers/hidpage). |
| 17 | * Abbreviations in the comments: |
| 18 | * AC - Application Control |
| 19 | * AL - Application Launch Button |
| 20 | * SC - System Control |
| 21 | */ |
| 22 | |
| 23 | #define KEY_RESERVED 0 |
| 24 | #define KEY_ESC 1 |
| 25 | #define KEY_1 2 |
| 26 | #define KEY_2 3 |
| 27 | #define KEY_3 4 |
| 28 | #define KEY_4 5 |
| 29 | #define KEY_5 6 |
| 30 | #define KEY_6 7 |
| 31 | #define KEY_7 8 |
| 32 | #define KEY_8 9 |
| 33 | #define KEY_9 10 |
| 34 | #define KEY_0 11 |
| 35 | #define KEY_MINUS 12 |
| 36 | #define KEY_EQUAL 13 |
| 37 | #define KEY_BACKSPACE 14 |
| 38 | #define KEY_TAB 15 |
| 39 | #define KEY_Q 16 |
| 40 | #define KEY_W 17 |
| 41 | #define KEY_E 18 |
| 42 | #define KEY_R 19 |
| 43 | #define KEY_T 20 |
| 44 | #define KEY_Y 21 |
| 45 | #define KEY_U 22 |
| 46 | #define KEY_I 23 |
| 47 | #define KEY_O 24 |
| 48 | #define KEY_P 25 |
| 49 | #define KEY_LEFTBRACE 26 |
| 50 | #define KEY_RIGHTBRACE 27 |
| 51 | #define KEY_ENTER 28 |
| 52 | #define KEY_LEFTCTRL 29 |
| 53 | #define KEY_A 30 |
| 54 | #define KEY_S 31 |
| 55 | #define KEY_D 32 |
| 56 | #define KEY_F 33 |
| 57 | #define KEY_G 34 |
| 58 | #define KEY_H 35 |
| 59 | #define KEY_J 36 |
| 60 | #define KEY_K 37 |
| 61 | #define KEY_L 38 |
| 62 | #define KEY_SEMICOLON 39 |
| 63 | #define KEY_APOSTROPHE 40 |
| 64 | #define KEY_GRAVE 41 |
| 65 | #define KEY_LEFTSHIFT 42 |
| 66 | #define KEY_BACKSLASH 43 |
| 67 | #define KEY_Z 44 |
| 68 | #define KEY_X 45 |
| 69 | #define KEY_C 46 |
| 70 | #define KEY_V 47 |
| 71 | #define KEY_B 48 |
| 72 | #define KEY_N 49 |
| 73 | #define KEY_M 50 |
| 74 | #define KEY_COMMA 51 |
| 75 | #define KEY_DOT 52 |
| 76 | #define KEY_SLASH 53 |
| 77 | #define KEY_RIGHTSHIFT 54 |
| 78 | #define KEY_KPASTERISK 55 |
| 79 | #define KEY_LEFTALT 56 |
| 80 | #define KEY_SPACE 57 |
| 81 | #define KEY_CAPSLOCK 58 |
| 82 | #define KEY_F1 59 |
| 83 | #define KEY_F2 60 |
| 84 | #define KEY_F3 61 |
| 85 | #define KEY_F4 62 |
| 86 | #define KEY_F5 63 |
| 87 | #define KEY_F6 64 |
| 88 | #define KEY_F7 65 |
| 89 | #define KEY_F8 66 |
| 90 | #define KEY_F9 67 |
| 91 | #define KEY_F10 68 |
| 92 | #define KEY_NUMLOCK 69 |
| 93 | #define KEY_SCROLLLOCK 70 |
| 94 | #define KEY_KP7 71 |
| 95 | #define KEY_KP8 72 |
| 96 | #define KEY_KP9 73 |
| 97 | #define KEY_KPMINUS 74 |
| 98 | #define KEY_KP4 75 |
| 99 | #define KEY_KP5 76 |
| 100 | #define KEY_KP6 77 |
| 101 | #define KEY_KPPLUS 78 |
| 102 | #define KEY_KP1 79 |
| 103 | #define KEY_KP2 80 |
| 104 | #define KEY_KP3 81 |
| 105 | #define KEY_KP0 82 |
| 106 | #define KEY_KPDOT 83 |
| 107 | |
| 108 | #define KEY_ZENKAKUHANKAKU 85 |
| 109 | #define KEY_102ND 86 |
| 110 | #define KEY_F11 87 |
| 111 | #define KEY_F12 88 |
| 112 | #define KEY_RO 89 |
| 113 | #define KEY_KATAKANA 90 |
| 114 | #define KEY_HIRAGANA 91 |
| 115 | #define KEY_HENKAN 92 |
| 116 | #define KEY_KATAKANAHIRAGANA 93 |
| 117 | #define KEY_MUHENKAN 94 |
| 118 | #define KEY_KPJPCOMMA 95 |
| 119 | #define KEY_KPENTER 96 |
| 120 | #define KEY_RIGHTCTRL 97 |
| 121 | #define KEY_KPSLASH 98 |
| 122 | #define KEY_SYSRQ 99 |
| 123 | #define KEY_RIGHTALT 100 |
| 124 | #define KEY_LINEFEED 101 |
| 125 | #define KEY_HOME 102 |
| 126 | #define KEY_UP 103 |
| 127 | #define KEY_PAGEUP 104 |
| 128 | #define KEY_LEFT 105 |
| 129 | #define KEY_RIGHT 106 |
| 130 | #define KEY_END 107 |
| 131 | #define KEY_DOWN 108 |
| 132 | #define KEY_PAGEDOWN 109 |
| 133 | #define KEY_INSERT 110 |
| 134 | #define KEY_DELETE 111 |
| 135 | #define KEY_MACRO 112 |
| 136 | #define KEY_MUTE 113 |
| 137 | #define KEY_VOLUMEDOWN 114 |
| 138 | #define KEY_VOLUMEUP 115 |
| 139 | #define KEY_POWER 116 /* SC System Power Down */ |
| 140 | #define KEY_KPEQUAL 117 |
| 141 | #define KEY_KPPLUSMINUS 118 |
| 142 | #define KEY_PAUSE 119 |
| 143 | #define KEY_SCALE 120 /* AL Compiz Scale (Expose) */ |
| 144 | |
| 145 | #define KEY_KPCOMMA 121 |
| 146 | #define KEY_HANGEUL 122 |
| 147 | #define KEY_HANGUEL KEY_HANGEUL |
| 148 | #define KEY_HANJA 123 |
| 149 | #define KEY_YEN 124 |
| 150 | #define KEY_LEFTMETA 125 |
| 151 | #define KEY_RIGHTMETA 126 |
| 152 | #define KEY_COMPOSE 127 |
| 153 | #define KEY_FN 0x1d0 |
| 154 | |
| 155 | #endif |