Simple Test sending scancodes over usb

Dependencies:   USBDevice mbed

Committer:
ThomasSonderDesign
Date:
Thu Feb 25 00:49:01 2016 +0000
Revision:
1:6659ded33dc1
Parent:
0:2a3d940c3621
Simple test of sending scancodes to the pc over usb

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ThomasSonderDesign 0:2a3d940c3621 1 #ifndef HEADER_FILE
ThomasSonderDesign 0:2a3d940c3621 2 #define HEADER_FILE
ThomasSonderDesign 0:2a3d940c3621 3
ThomasSonderDesign 0:2a3d940c3621 4 #define VK_BACK 8 // BACKSPACE key
ThomasSonderDesign 0:2a3d940c3621 5 #define VK_TAB 9 // TAB key
ThomasSonderDesign 0:2a3d940c3621 6 #define VK_CLEAR 12 // CLEAR key
ThomasSonderDesign 0:2a3d940c3621 7 #define VK_RETURN 13 // ENTER key
ThomasSonderDesign 0:2a3d940c3621 8 #define VK_SHIFT 16 // SHIFT key
ThomasSonderDesign 0:2a3d940c3621 9 #define VK_CONTROL 17 // CTRL key
ThomasSonderDesign 0:2a3d940c3621 10 #define VK_MENU 18 // ALT key
ThomasSonderDesign 0:2a3d940c3621 11 #define VK_PAUSE 19 // PAUSE key
ThomasSonderDesign 0:2a3d940c3621 12 #define VK_CAPITAL 20 // CAPS LOCK key
ThomasSonderDesign 0:2a3d940c3621 13 #define VK_KANA 21 // IME Kana mode/Hanguel mode/ hangul mode
ThomasSonderDesign 0:2a3d940c3621 14 #define VK_JUNJA 23 // IME Junja mode
ThomasSonderDesign 0:2a3d940c3621 15 #define VK_FINAL 24 // IME final mode
ThomasSonderDesign 0:2a3d940c3621 16 #define VK_HANJA 25 // IME Hanja mode/ Kanji mode
ThomasSonderDesign 0:2a3d940c3621 17 #define VK_ESCAPE 27 // ESC key
ThomasSonderDesign 0:2a3d940c3621 18 #define VK_CONVERT 28 // IME convert
ThomasSonderDesign 0:2a3d940c3621 19 #define VK_NONCONVERT 29 // IME nonconvert
ThomasSonderDesign 0:2a3d940c3621 20 #define VK_ACCEPT 30 // IME accept
ThomasSonderDesign 0:2a3d940c3621 21 #define VK_MODECHANGE 31 // IME mode change request
ThomasSonderDesign 0:2a3d940c3621 22 #define VK_SPACE 32 // SPACEBAR
ThomasSonderDesign 0:2a3d940c3621 23 #define VK_PRIOR 33 // PAGE UP key
ThomasSonderDesign 0:2a3d940c3621 24 #define VK_NEXT 34 // PAGE DOWN key
ThomasSonderDesign 0:2a3d940c3621 25 #define VK_END 35 // END key
ThomasSonderDesign 0:2a3d940c3621 26 #define VK_HOME 36 // HOME key
ThomasSonderDesign 0:2a3d940c3621 27 #define VK_LEFT 37 // LEFT ARROW key
ThomasSonderDesign 0:2a3d940c3621 28 #define VK_UP 38 // UP ARROW key
ThomasSonderDesign 0:2a3d940c3621 29 #define VK_RIGHT 39 // RIGHT ARROW key
ThomasSonderDesign 0:2a3d940c3621 30 #define VK_DOWN 40 // DOWN ARROW key
ThomasSonderDesign 0:2a3d940c3621 31 #define VK_SELECT 41 // SELECT key
ThomasSonderDesign 0:2a3d940c3621 32 #define VK_PRINT 42 // PRINT key
ThomasSonderDesign 0:2a3d940c3621 33 #define VK_EXECUTE 43 // EXECUTE key
ThomasSonderDesign 0:2a3d940c3621 34 #define VK_SNAPSHOT 44 // PRINT SCREEN key
ThomasSonderDesign 0:2a3d940c3621 35 #define VK_INSERT 45 // INS key
ThomasSonderDesign 0:2a3d940c3621 36 #define VK_DELETE 46 // DEL key
ThomasSonderDesign 0:2a3d940c3621 37 #define VK_HELP 47 // HELP key
ThomasSonderDesign 0:2a3d940c3621 38 #define KEY_0 48 // 0 key
ThomasSonderDesign 0:2a3d940c3621 39 #define KEY_1 49 // 1 key
ThomasSonderDesign 0:2a3d940c3621 40 #define KEY_2 50 // 2 key
ThomasSonderDesign 0:2a3d940c3621 41 #define KEY_3 51 // 3 key
ThomasSonderDesign 0:2a3d940c3621 42 #define KEY_4 52 // 4 key
ThomasSonderDesign 0:2a3d940c3621 43 #define KEY_5 53 // 5 key
ThomasSonderDesign 0:2a3d940c3621 44 #define KEY_6 54 // 6 key
ThomasSonderDesign 0:2a3d940c3621 45 #define KEY_7 55 // 7 key
ThomasSonderDesign 0:2a3d940c3621 46 #define KEY_8 56 // 8 key
ThomasSonderDesign 0:2a3d940c3621 47 #define KEY_9 57 // 9 key
ThomasSonderDesign 0:2a3d940c3621 48 #define KEY_A 65 // A key
ThomasSonderDesign 0:2a3d940c3621 49 #define KEY_B 66 // B key
ThomasSonderDesign 0:2a3d940c3621 50 #define KEY_C 67 // C key
ThomasSonderDesign 0:2a3d940c3621 51 #define KEY_D 68 // D key
ThomasSonderDesign 0:2a3d940c3621 52 #define KEY_E 69 // E key
ThomasSonderDesign 0:2a3d940c3621 53 #define KEY_F 70 // F key
ThomasSonderDesign 0:2a3d940c3621 54 #define KEY_G 71 // G key
ThomasSonderDesign 0:2a3d940c3621 55 #define KEY_H 72 // H key
ThomasSonderDesign 0:2a3d940c3621 56 #define KEY_I 73 // I key
ThomasSonderDesign 0:2a3d940c3621 57 #define KEY_J 74 // J key
ThomasSonderDesign 0:2a3d940c3621 58 #define KEY_K 75 // K key
ThomasSonderDesign 0:2a3d940c3621 59 #define KEY_L 76 // L key
ThomasSonderDesign 0:2a3d940c3621 60 #define KEY_M 77 // M key
ThomasSonderDesign 0:2a3d940c3621 61 #define KEY_N 78 // N key
ThomasSonderDesign 0:2a3d940c3621 62 #define KEY_O 79 // O key
ThomasSonderDesign 0:2a3d940c3621 63 #define KEY_P 80 // P key
ThomasSonderDesign 0:2a3d940c3621 64 #define KEY_Q 81 // Q key
ThomasSonderDesign 0:2a3d940c3621 65 #define KEY_R 82 // R key
ThomasSonderDesign 0:2a3d940c3621 66 #define KEY_S 83 // S key
ThomasSonderDesign 0:2a3d940c3621 67 #define KEY_T 84 // T key
ThomasSonderDesign 0:2a3d940c3621 68 #define KEY_U 85 // U key
ThomasSonderDesign 0:2a3d940c3621 69 #define KEY_V 86 // V key
ThomasSonderDesign 0:2a3d940c3621 70 #define KEY_W 87 // W key
ThomasSonderDesign 0:2a3d940c3621 71 #define KEY_X 88 // X key
ThomasSonderDesign 0:2a3d940c3621 72 #define KEY_Y 89 // Y key
ThomasSonderDesign 0:2a3d940c3621 73 #define KEY_Z 90 // Z key
ThomasSonderDesign 0:2a3d940c3621 74 #define VK_LWIN 91 // Left Windows key (Microsoft® Natural® keyboard)
ThomasSonderDesign 0:2a3d940c3621 75 #define VK_RWIN 92 // Right Windows key (Natural keyboard)
ThomasSonderDesign 0:2a3d940c3621 76 #define VK_APPS 93 // Applications key (Natural keyboard)
ThomasSonderDesign 0:2a3d940c3621 77 #define VK_SLEEP 95 // Computer Sleep key
ThomasSonderDesign 0:2a3d940c3621 78 #define VK_NUMPAD0 96 // Numeric keypad 0 key
ThomasSonderDesign 0:2a3d940c3621 79 #define VK_NUMPAD1 97 // Numeric keypad 1 key
ThomasSonderDesign 0:2a3d940c3621 80 #define VK_NUMPAD2 98 // Numeric keypad 2 key
ThomasSonderDesign 0:2a3d940c3621 81 #define VK_NUMPAD3 99 // Numeric keypad 3 key
ThomasSonderDesign 0:2a3d940c3621 82 #define VK_NUMPAD4 100 // Numeric keypad 4 key
ThomasSonderDesign 0:2a3d940c3621 83 #define VK_NUMPAD5 101 // Numeric keypad 5 key
ThomasSonderDesign 0:2a3d940c3621 84 #define VK_NUMPAD6 102 // Numeric keypad 6 key
ThomasSonderDesign 0:2a3d940c3621 85 #define VK_NUMPAD7 103 // Numeric keypad 7 key
ThomasSonderDesign 0:2a3d940c3621 86 #define VK_NUMPAD8 104 // Numeric keypad 8 key
ThomasSonderDesign 0:2a3d940c3621 87 #define VK_NUMPAD9 105 // Numeric keypad 9 key
ThomasSonderDesign 0:2a3d940c3621 88 #define VK_MULTIPLY 106 // Multiply key
ThomasSonderDesign 0:2a3d940c3621 89 #define VK_ADD 107 // Add key
ThomasSonderDesign 0:2a3d940c3621 90 #define VK_SEPARATOR 108 // Separator key
ThomasSonderDesign 0:2a3d940c3621 91 #define VK_SUBTRACT 109 // Subtract key
ThomasSonderDesign 0:2a3d940c3621 92 #define VK_DECIMAL 110 // Decimal key
ThomasSonderDesign 0:2a3d940c3621 93 #define VK_DIVIDE 111 // Divide key
ThomasSonderDesign 0:2a3d940c3621 94 #define VK_F1 112 // F1 key
ThomasSonderDesign 0:2a3d940c3621 95 #define VK_F2 113 // F2 key
ThomasSonderDesign 0:2a3d940c3621 96 #define VK_F3 114 // F3 key
ThomasSonderDesign 0:2a3d940c3621 97 #define VK_F4 115 // F4 key
ThomasSonderDesign 0:2a3d940c3621 98 #define VK_F5 116 // F5 key
ThomasSonderDesign 0:2a3d940c3621 99 #define VK_F6 117 // F6 key
ThomasSonderDesign 0:2a3d940c3621 100 #define VK_F7 118 // F7 key
ThomasSonderDesign 0:2a3d940c3621 101 #define VK_F8 119 // F8 key
ThomasSonderDesign 0:2a3d940c3621 102 #define VK_F9 120 // F9 key
ThomasSonderDesign 0:2a3d940c3621 103 #define VK_F10 121 // F10 key
ThomasSonderDesign 0:2a3d940c3621 104 #define VK_F11 122 // F11 key
ThomasSonderDesign 0:2a3d940c3621 105 #define VK_F12 123 // F12 key
ThomasSonderDesign 0:2a3d940c3621 106 #define VK_NUMLOCK 144 // NUM LOCK key
ThomasSonderDesign 0:2a3d940c3621 107 #define VK_SCROLL 145 // SCROLL LOCK key
ThomasSonderDesign 0:2a3d940c3621 108 #define VK_LSHIFT 160 // Left SHIFT key
ThomasSonderDesign 0:2a3d940c3621 109 #define VK_RSHIFT 161 // Right SHIFT key
ThomasSonderDesign 0:2a3d940c3621 110 #define VK_LCONTROL 162 // Left CONTROL key
ThomasSonderDesign 0:2a3d940c3621 111 #define VK_RCONTROL 163 // Right CONTROL key
ThomasSonderDesign 0:2a3d940c3621 112 #define VK_LMENU 164 // Left MENU key
ThomasSonderDesign 0:2a3d940c3621 113 #define VK_RMENU 165 // Right MENU key
ThomasSonderDesign 0:2a3d940c3621 114 #define VK_BROWSER_BACK 166 // Windows 2000: Browser Back key
ThomasSonderDesign 0:2a3d940c3621 115 #define VK_BROWSER_FORWARD 167 // Windows 2000: Browser Forward key
ThomasSonderDesign 0:2a3d940c3621 116 #define VK_BROWSER_REFRESH 168 // Windows 2000: Browser Refresh key
ThomasSonderDesign 0:2a3d940c3621 117 #define VK_BROWSER_STOP 169 // Windows 2000: Browser Stop key
ThomasSonderDesign 0:2a3d940c3621 118 #define VK_BROWSER_SEARCH 170 // Windows 2000: Browser Search key
ThomasSonderDesign 0:2a3d940c3621 119 #define VK_BROWSER_FAVORITES 171 // Windows 2000: Browser Favorites key
ThomasSonderDesign 0:2a3d940c3621 120 #define VK_BROWSER_HOME 172 // Windows 2000: Browser Start and Home key
ThomasSonderDesign 0:2a3d940c3621 121 #define VK_VOLUME_MUTE 173 // Windows 2000: Volume Mute key
ThomasSonderDesign 0:2a3d940c3621 122 #define VK_VOLUME_DOWN 174 // Windows 2000: Volume Down key
ThomasSonderDesign 0:2a3d940c3621 123 #define VK_VOLUME_UP 175 // Windows 2000: Volume Up key
ThomasSonderDesign 0:2a3d940c3621 124 #define VK_MEDIA_NEXT_TRACK 176 // Windows 2000: Next Track key
ThomasSonderDesign 0:2a3d940c3621 125 #define VK_MEDIA_PREV_TRACK 177 // Windows 2000: Previous Track key
ThomasSonderDesign 0:2a3d940c3621 126 #define VK_MEDIA_STOP 178 // Windows 2000: Stop Media key
ThomasSonderDesign 0:2a3d940c3621 127 #define VK_MEDIA_PLAY_PAUSE 179 // Windows 2000: Play/Pause Media key
ThomasSonderDesign 0:2a3d940c3621 128 #define VK_LAUNCH_MAIL 180 // Windows 2000: Start Mail key
ThomasSonderDesign 0:2a3d940c3621 129 #define VK_LAUNCH_MEDIA_SELECT 181 // Windows 2000: Select Media key
ThomasSonderDesign 0:2a3d940c3621 130 #define VK_LAUNCH_APP1 182 // Windows 2000: Start Application 1 key
ThomasSonderDesign 0:2a3d940c3621 131 #define VK_LAUNCH_APP2 183 // Windows 2000: Start Application 2 key
ThomasSonderDesign 0:2a3d940c3621 132 #define VK_OEM_1 186 // Windows 2000: For the US standard keyboard, the ';:' key
ThomasSonderDesign 0:2a3d940c3621 133 #define VK_OEM_PLUS 187 // Windows 2000: For any country/region, the '+' key
ThomasSonderDesign 0:2a3d940c3621 134 #define VK_OEM_COMMA 188 // Windows 2000: For any country/region, the ',' key
ThomasSonderDesign 0:2a3d940c3621 135 #define VK_OEM_MINUS 189 // Windows 2000: For any country/region, the '-' key
ThomasSonderDesign 0:2a3d940c3621 136 #define VK_OEM_PERIOD 190 // Windows 2000: For any country/region, the '.' key
ThomasSonderDesign 0:2a3d940c3621 137 #define VK_OEM_2 191 // Windows 2000: For the US standard keyboard, the '/?' key
ThomasSonderDesign 0:2a3d940c3621 138 #define VK_OEM_3 192 // Windows 2000: For the US standard keyboard, the '`~' key
ThomasSonderDesign 0:2a3d940c3621 139 #define VK_OEM_4 219 // Windows 2000: For the US standard keyboard, the '[{' key
ThomasSonderDesign 0:2a3d940c3621 140 #define VK_OEM_5 220 // Windows 2000: For the US standard keyboard, the '\|' key
ThomasSonderDesign 0:2a3d940c3621 141 #define VK_OEM_6 221 // Windows 2000: For the US standard keyboard, the ']}' key
ThomasSonderDesign 0:2a3d940c3621 142 #define VK_OEM_7 222 // Windows 2000: For the US standard keyboard, the 'single-quote/double-quote' key
ThomasSonderDesign 0:2a3d940c3621 143 #define VK_OEM_8 223 //
ThomasSonderDesign 0:2a3d940c3621 144 #define VK_OEM_102 226 // Windows 2000: Either the angle bracket key or the backslash key on the RT 102-key keyboard
ThomasSonderDesign 0:2a3d940c3621 145 #define VK_PROCESSKEY 229 // Windows 95/98, Windows NT 4.0, Windows 2000: IME PROCESS key
ThomasSonderDesign 0:2a3d940c3621 146 #define VK_ATTN 246 // Attn key
ThomasSonderDesign 0:2a3d940c3621 147 #define VK_CRSEL 247 // CrSel key
ThomasSonderDesign 0:2a3d940c3621 148 #define VK_EXSEL 248 // ExSel key
ThomasSonderDesign 0:2a3d940c3621 149 #define VK_EREOF 249 // Erase EOF key
ThomasSonderDesign 0:2a3d940c3621 150 #define VK_PLAY 250 // Play key
ThomasSonderDesign 0:2a3d940c3621 151 #define VK_ZOOM 251 // Zoom key
ThomasSonderDesign 0:2a3d940c3621 152 #define VK_NONAME 252 // Reserved for future use
ThomasSonderDesign 0:2a3d940c3621 153 #define VK_PA1 253 // PA1 key
ThomasSonderDesign 0:2a3d940c3621 154 #define VK_OEM_CLEAR 254 // Clear key
ThomasSonderDesign 0:2a3d940c3621 155
ThomasSonderDesign 0:2a3d940c3621 156
ThomasSonderDesign 0:2a3d940c3621 157 #endif