/* * Copyright 2004-2006, Jérôme Duval. All rights reserved. * Copyright 2005-2010, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. */ #ifndef AT_KEYMAP_H #define AT_KEYMAP_H #include const static uint32 kATKeycodeMap[] = { 0x1, // Esc 0x12, // 1 0x13, // 2 0x14, // 3 0x15, // 4 0x16, // 5 0x17, // 6 0x18, // 7 0x19, // 8 0x1a, // 9 0x1b, // 0 0x1c, // - 0x1d, // = 0x1e, // BACKSPACE 0x26, // TAB 0x27, // Q 0x28, // W 0x29, // E 0x2a, // R 0x2b, // T 0x2c, // Y 0x2d, // U 0x2e, // I 0x2f, // O 0x30, // P 0x31, // [ 0x32, // ] 0x47, // ENTER 0x5c, // Left Control 0x3c, // A 0x3d, // S 0x3e, // D 0x3f, // F 0x40, // G 0x41, // H 0x42, // J 0x43, // K 0x44, // L 0x45, // ; 0x46, // ' 0x11, // ` 0x4b, // Left Shift 0x33, // \ (backslash -- note: don't remove non-white-space after BS char) 0x4c, // Z 0x4d, // X 0x4e, // C 0x4f, // V 0x50, // B 0x51, // N 0x52, // M 0x53, // , 0x54, // . 0x55, // / 0x56, // Right Shift 0x24, // * 0x5d, // Left Alt 0x5e, // Space 0x3b, // Caps 0x02, // F1 0x03, // F2 0x04, // F3 0x05, // F4 0x06, // F5 0x07, // F6 0x08, // F7 0x09, // F8 0x0a, // F9 0x0b, // F10 0x22, // Num 0x0f, // Scroll 0x37, // KP 7 0x38, // KP 8 0x39, // KP 9 0x25, // KP - 0x48, // KP 4 0x49, // KP 5 0x4a, // KP 6 0x3a, // KP + 0x58, // KP 1 0x59, // KP 2 0x5a, // KP 3 0x64, // KP 0 0x65, // KP . 0x00, // UNMAPPED 0x00, // UNMAPPED 0x69, // < 0x0c, // F11 0x0d, // F12 0x00, // UNMAPPED 0x00, // UNMAPPED 90 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 100 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 110 0x00, // UNMAPPED 0x6e, // Katakana/Hiragana, second key right to spacebar, japanese 0x00, // UNMAPPED 0x00, // UNMAPPED 0x6b, // Ro (\\ key, japanese) 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 120 0x6d, // Henkan, first key right to spacebar, japanese 0x00, // UNMAPPED 0x6c, // Muhenkan, key left to spacebar, japanese 0x00, // UNMAPPED 0x6a, // Yen (macron key, japanese) 0x70, // Keypad . on Brazilian ABNT2 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 130 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 140 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x85, // media: Previous track 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 150 0x00, // UNMAPPED 0x00, // UNMAPPED 0x8a, // media: Next track 0x00, // UNMAPPED 0x00, // UNMAPPED 0x5b, // KP Enter 0x60, // Right Control 0x00, // UNMAPPED 0x00, // UNMAPPED 0x93, // media: Volume mute 160 0x87, // media: Calculator 0x81, // media: Play 0x00, // UNMAPPED 0x86, // media: Stop 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 170 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x92, // media: Volume down 0x00, // UNMAPPED 0x91, // media: Volume up 0x00, // UNMAPPED 0x8a, // media: www home 0x00, // UNMAPPED 0x00, // UNMAPPED 180 0x23, // KP / 0x00, // UNMAPPED 0x0e, // Print Screen 0x5f, // Right Alt 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 190 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x7f, // Break 0x20, // Home 0x57, // Up Arrow 200 0x21, // Page Up 0x00, // UNMAPPED 0x61, // Left Arrow 0x00, // UNMAPPED 0x63, // Right Arrow 0x00, // UNMAPPED 0x35, // End 0x62, // Down Arrow 0x36, // Page Down 0x1f, // Insert 210 0x34, // Delete 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x66, // Left Gui 0x67, // Right Gui 220 0x68, // Menu 0x94, // power: Shutdown 0x95, // power: Sleep 0x00, // UNMAPPED 0x60 0x00, // UNMAPPED 0x00, // UNMAPPED 0x96, // power: Wake 0x00, // UNMAPPED 0x8d, // media: www Search 0x8e, // medie: www Favorites 230 0x8f, // media: www Refresh 0x90, // media: www Stop 0x8b, // media: www Forward 0x8c, // media: www back 0x88, // media: My computer 0x89, // media: email 0x83, // media: select //last scancode for pressed 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED 0x00, // UNMAPPED }; #endif // AT_KEYMAP_H