1*5375c83bSJohn Arbuckle /* 2*5375c83bSJohn Arbuckle * QEMU System Emulator 3*5375c83bSJohn Arbuckle * 4*5375c83bSJohn Arbuckle * Copyright (c) 2016 John Arbuckle 5*5375c83bSJohn Arbuckle * 6*5375c83bSJohn Arbuckle * This work is licensed under the terms of the GNU GPL, version 2 or later. 7*5375c83bSJohn Arbuckle * See the COPYING file in the top-level directory. 8*5375c83bSJohn Arbuckle */ 9*5375c83bSJohn Arbuckle 10*5375c83bSJohn Arbuckle /* 11*5375c83bSJohn Arbuckle * adb-keys.h 12*5375c83bSJohn Arbuckle * 13*5375c83bSJohn Arbuckle * Provides an enum of all the Macintosh keycodes. 14*5375c83bSJohn Arbuckle * Additional information: http://www.archive.org/stream/apple-guide-macintosh-family-hardware/Apple_Guide_to_the_Macintosh_Family_Hardware_2e#page/n345/mode/2up 15*5375c83bSJohn Arbuckle * page 308 16*5375c83bSJohn Arbuckle */ 17*5375c83bSJohn Arbuckle 18*5375c83bSJohn Arbuckle #ifndef ADB_KEYS_H 19*5375c83bSJohn Arbuckle #define ADB_KEYS_H 20*5375c83bSJohn Arbuckle 21*5375c83bSJohn Arbuckle enum { 22*5375c83bSJohn Arbuckle ADB_KEY_A = 0x00, 23*5375c83bSJohn Arbuckle ADB_KEY_B = 0x0b, 24*5375c83bSJohn Arbuckle ADB_KEY_C = 0x08, 25*5375c83bSJohn Arbuckle ADB_KEY_D = 0x02, 26*5375c83bSJohn Arbuckle ADB_KEY_E = 0x0e, 27*5375c83bSJohn Arbuckle ADB_KEY_F = 0x03, 28*5375c83bSJohn Arbuckle ADB_KEY_G = 0x05, 29*5375c83bSJohn Arbuckle ADB_KEY_H = 0x04, 30*5375c83bSJohn Arbuckle ADB_KEY_I = 0x22, 31*5375c83bSJohn Arbuckle ADB_KEY_J = 0x26, 32*5375c83bSJohn Arbuckle ADB_KEY_K = 0x28, 33*5375c83bSJohn Arbuckle ADB_KEY_L = 0x25, 34*5375c83bSJohn Arbuckle ADB_KEY_M = 0x2e, 35*5375c83bSJohn Arbuckle ADB_KEY_N = 0x2d, 36*5375c83bSJohn Arbuckle ADB_KEY_O = 0x1f, 37*5375c83bSJohn Arbuckle ADB_KEY_P = 0x23, 38*5375c83bSJohn Arbuckle ADB_KEY_Q = 0x0c, 39*5375c83bSJohn Arbuckle ADB_KEY_R = 0x0f, 40*5375c83bSJohn Arbuckle ADB_KEY_S = 0x01, 41*5375c83bSJohn Arbuckle ADB_KEY_T = 0x11, 42*5375c83bSJohn Arbuckle ADB_KEY_U = 0x20, 43*5375c83bSJohn Arbuckle ADB_KEY_V = 0x09, 44*5375c83bSJohn Arbuckle ADB_KEY_W = 0x0d, 45*5375c83bSJohn Arbuckle ADB_KEY_X = 0x07, 46*5375c83bSJohn Arbuckle ADB_KEY_Y = 0x10, 47*5375c83bSJohn Arbuckle ADB_KEY_Z = 0x06, 48*5375c83bSJohn Arbuckle 49*5375c83bSJohn Arbuckle ADB_KEY_0 = 0x1d, 50*5375c83bSJohn Arbuckle ADB_KEY_1 = 0x12, 51*5375c83bSJohn Arbuckle ADB_KEY_2 = 0x13, 52*5375c83bSJohn Arbuckle ADB_KEY_3 = 0x14, 53*5375c83bSJohn Arbuckle ADB_KEY_4 = 0x15, 54*5375c83bSJohn Arbuckle ADB_KEY_5 = 0x17, 55*5375c83bSJohn Arbuckle ADB_KEY_6 = 0x16, 56*5375c83bSJohn Arbuckle ADB_KEY_7 = 0x1a, 57*5375c83bSJohn Arbuckle ADB_KEY_8 = 0x1c, 58*5375c83bSJohn Arbuckle ADB_KEY_9 = 0x19, 59*5375c83bSJohn Arbuckle 60*5375c83bSJohn Arbuckle ADB_KEY_GRAVE_ACCENT = 0x32, 61*5375c83bSJohn Arbuckle ADB_KEY_MINUS = 0x1b, 62*5375c83bSJohn Arbuckle ADB_KEY_EQUAL = 0x18, 63*5375c83bSJohn Arbuckle ADB_KEY_DELETE = 0x33, 64*5375c83bSJohn Arbuckle ADB_KEY_CAPS_LOCK = 0x39, 65*5375c83bSJohn Arbuckle ADB_KEY_TAB = 0x30, 66*5375c83bSJohn Arbuckle ADB_KEY_RETURN = 0x24, 67*5375c83bSJohn Arbuckle ADB_KEY_LEFT_BRACKET = 0x21, 68*5375c83bSJohn Arbuckle ADB_KEY_RIGHT_BRACKET = 0x1e, 69*5375c83bSJohn Arbuckle ADB_KEY_BACKSLASH = 0x2a, 70*5375c83bSJohn Arbuckle ADB_KEY_SEMICOLON = 0x29, 71*5375c83bSJohn Arbuckle ADB_KEY_APOSTROPHE = 0x27, 72*5375c83bSJohn Arbuckle ADB_KEY_COMMA = 0x2b, 73*5375c83bSJohn Arbuckle ADB_KEY_PERIOD = 0x2f, 74*5375c83bSJohn Arbuckle ADB_KEY_FORWARD_SLASH = 0x2c, 75*5375c83bSJohn Arbuckle ADB_KEY_LEFT_SHIFT = 0x38, 76*5375c83bSJohn Arbuckle ADB_KEY_RIGHT_SHIFT = 0x7b, 77*5375c83bSJohn Arbuckle ADB_KEY_SPACEBAR = 0x31, 78*5375c83bSJohn Arbuckle ADB_KEY_LEFT_CONTROL = 0x36, 79*5375c83bSJohn Arbuckle ADB_KEY_RIGHT_CONTROL = 0x7d, 80*5375c83bSJohn Arbuckle ADB_KEY_LEFT_OPTION = 0x3a, 81*5375c83bSJohn Arbuckle ADB_KEY_RIGHT_OPTION = 0x7c, 82*5375c83bSJohn Arbuckle ADB_KEY_COMMAND = 0x37, 83*5375c83bSJohn Arbuckle 84*5375c83bSJohn Arbuckle ADB_KEY_KP_0 = 0x52, 85*5375c83bSJohn Arbuckle ADB_KEY_KP_1 = 0x53, 86*5375c83bSJohn Arbuckle ADB_KEY_KP_2 = 0x54, 87*5375c83bSJohn Arbuckle ADB_KEY_KP_3 = 0x55, 88*5375c83bSJohn Arbuckle ADB_KEY_KP_4 = 0x56, 89*5375c83bSJohn Arbuckle ADB_KEY_KP_5 = 0x57, 90*5375c83bSJohn Arbuckle ADB_KEY_KP_6 = 0x58, 91*5375c83bSJohn Arbuckle ADB_KEY_KP_7 = 0x59, 92*5375c83bSJohn Arbuckle ADB_KEY_KP_8 = 0x5b, 93*5375c83bSJohn Arbuckle ADB_KEY_KP_9 = 0x5c, 94*5375c83bSJohn Arbuckle ADB_KEY_KP_PERIOD = 0x41, 95*5375c83bSJohn Arbuckle ADB_KEY_KP_ENTER = 0x4c, 96*5375c83bSJohn Arbuckle ADB_KEY_KP_PLUS = 0x45, 97*5375c83bSJohn Arbuckle ADB_KEY_KP_SUBTRACT = 0x4e, 98*5375c83bSJohn Arbuckle ADB_KEY_KP_MULTIPLY = 0x43, 99*5375c83bSJohn Arbuckle ADB_KEY_KP_DIVIDE = 0x4b, 100*5375c83bSJohn Arbuckle ADB_KEY_KP_EQUAL = 0x51, 101*5375c83bSJohn Arbuckle ADB_KEY_KP_CLEAR = 0x47, 102*5375c83bSJohn Arbuckle 103*5375c83bSJohn Arbuckle ADB_KEY_UP = 0x3e, 104*5375c83bSJohn Arbuckle ADB_KEY_DOWN = 0x3d, 105*5375c83bSJohn Arbuckle ADB_KEY_LEFT = 0x3b, 106*5375c83bSJohn Arbuckle ADB_KEY_RIGHT = 0x3c, 107*5375c83bSJohn Arbuckle 108*5375c83bSJohn Arbuckle ADB_KEY_HELP = 0x72, 109*5375c83bSJohn Arbuckle ADB_KEY_HOME = 0x73, 110*5375c83bSJohn Arbuckle ADB_KEY_PAGE_UP = 0x74, 111*5375c83bSJohn Arbuckle ADB_KEY_PAGE_DOWN = 0x79, 112*5375c83bSJohn Arbuckle ADB_KEY_END = 0x77, 113*5375c83bSJohn Arbuckle ADB_KEY_FORWARD_DELETE = 0x75, 114*5375c83bSJohn Arbuckle 115*5375c83bSJohn Arbuckle ADB_KEY_ESC = 0x35, 116*5375c83bSJohn Arbuckle ADB_KEY_F1 = 0x7a, 117*5375c83bSJohn Arbuckle ADB_KEY_F2 = 0x78, 118*5375c83bSJohn Arbuckle ADB_KEY_F3 = 0x63, 119*5375c83bSJohn Arbuckle ADB_KEY_F4 = 0x76, 120*5375c83bSJohn Arbuckle ADB_KEY_F5 = 0x60, 121*5375c83bSJohn Arbuckle ADB_KEY_F6 = 0x61, 122*5375c83bSJohn Arbuckle ADB_KEY_F7 = 0x62, 123*5375c83bSJohn Arbuckle ADB_KEY_F8 = 0x64, 124*5375c83bSJohn Arbuckle ADB_KEY_F9 = 0x65, 125*5375c83bSJohn Arbuckle ADB_KEY_F10 = 0x6d, 126*5375c83bSJohn Arbuckle ADB_KEY_F11 = 0x67, 127*5375c83bSJohn Arbuckle ADB_KEY_F12 = 0x6f, 128*5375c83bSJohn Arbuckle ADB_KEY_F13 = 0x69, 129*5375c83bSJohn Arbuckle ADB_KEY_F14 = 0x6b, 130*5375c83bSJohn Arbuckle ADB_KEY_F15 = 0x71, 131*5375c83bSJohn Arbuckle 132*5375c83bSJohn Arbuckle ADB_KEY_VOLUME_UP = 0x48, 133*5375c83bSJohn Arbuckle ADB_KEY_VOLUME_DOWN = 0x49, 134*5375c83bSJohn Arbuckle ADB_KEY_VOLUME_MUTE = 0x4a, 135*5375c83bSJohn Arbuckle ADB_KEY_POWER = 0x7f7f 136*5375c83bSJohn Arbuckle }; 137*5375c83bSJohn Arbuckle 138*5375c83bSJohn Arbuckle /* Could not find the value for this key. */ 139*5375c83bSJohn Arbuckle /* #define ADB_KEY_EJECT */ 140*5375c83bSJohn Arbuckle 141*5375c83bSJohn Arbuckle #endif /* ADB_KEYS_H */ 142