# cocoa_keys.h

    00001 /* $Id: cocoa_keys.h 11492 2007-11-22 21:48:17Z egladil $ */
    00002
    00003 #ifndef COCOA_KEYS_H
    00004 #define COCOA_KEYS_H
    00005
    00006 /* From SDL_QuartzKeys.h */
    00007 /* These are the Macintosh key scancode constants -- from Inside Macintosh */
    00008
    00009 #define QZ_ESCAPE       0x35
    00010 #define QZ_F1           0x7A
    00011 #define QZ_F2           0x78
    00012 #define QZ_F3           0x63
    00013 #define QZ_F4           0x76
    00014 #define QZ_F5           0x60
    00015 #define QZ_F6           0x61
    00016 #define QZ_F7           0x62
    00017 #define QZ_F8           0x64
    00018 #define QZ_F9           0x65
    00019 #define QZ_F10          0x6D
    00020 #define QZ_F11          0x67
    00021 #define QZ_F12          0x6F
    00022 #define QZ_PRINT        0x69
    00023 #define QZ_SCROLLOCK    0x6B
    00024 #define QZ_PAUSE        0x71
    00025 #define QZ_POWER        0x7F
    00026 #define QZ_BACKQUOTE    0x0A
    00027 #define QZ_BACKQUOTE2   0x32
    00028 #define QZ_1            0x12
    00029 #define QZ_2            0x13
    00030 #define QZ_3            0x14
    00031 #define QZ_4            0x15
    00032 #define QZ_5            0x17
    00033 #define QZ_6            0x16
    00034 #define QZ_7            0x1A
    00035 #define QZ_8            0x1C
    00036 #define QZ_9            0x19
    00037 #define QZ_0            0x1D
    00038 #define QZ_MINUS        0x1B
    00039 #define QZ_EQUALS       0x18
    00040 #define QZ_BACKSPACE    0x33
    00041 #define QZ_INSERT       0x72
    00042 #define QZ_HOME         0x73
    00043 #define QZ_PAGEUP       0x74
    00044 #define QZ_NUMLOCK      0x47
    00045 #define QZ_KP_EQUALS    0x51
    00046 #define QZ_KP_DIVIDE    0x4B
    00047 #define QZ_KP_MULTIPLY  0x43
    00048 #define QZ_TAB          0x30
    00049 #define QZ_q            0x0C
    00050 #define QZ_w            0x0D
    00051 #define QZ_e            0x0E
    00052 #define QZ_r            0x0F
    00053 #define QZ_t            0x11
    00054 #define QZ_y            0x10
    00055 #define QZ_u            0x20
    00056 #define QZ_i            0x22
    00057 #define QZ_o            0x1F
    00058 #define QZ_p            0x23
    00059 #define QZ_LEFTBRACKET  0x21
    00060 #define QZ_RIGHTBRACKET 0x1E
    00061 #define QZ_BACKSLASH    0x2A
    00062 #define QZ_DELETE       0x75
    00063 #define QZ_END          0x77
    00064 #define QZ_PAGEDOWN     0x79
    00065 #define QZ_KP7          0x59
    00066 #define QZ_KP8          0x5B
    00067 #define QZ_KP9          0x5C
    00068 #define QZ_KP_MINUS     0x4E
    00069 #define QZ_CAPSLOCK     0x39
    00070 #define QZ_a            0x00
    00071 #define QZ_s            0x01
    00072 #define QZ_d            0x02
    00073 #define QZ_f            0x03
    00074 #define QZ_g            0x05
    00075 #define QZ_h            0x04
    00076 #define QZ_j            0x26
    00077 #define QZ_k            0x28
    00078 #define QZ_l            0x25
    00079 #define QZ_SEMICOLON    0x29
    00080 #define QZ_QUOTE        0x27
    00081 #define QZ_RETURN       0x24
    00082 #define QZ_KP4          0x56
    00083 #define QZ_KP5          0x57
    00084 #define QZ_KP6          0x58
    00085 #define QZ_KP_PLUS      0x45
    00086 #define QZ_LSHIFT       0x38
    00087 #define QZ_z            0x06
    00088 #define QZ_x            0x07
    00089 #define QZ_c            0x08
    00090 #define QZ_v            0x09
    00091 #define QZ_b            0x0B
    00092 #define QZ_n            0x2D
    00093 #define QZ_m            0x2E
    00094 #define QZ_COMMA        0x2B
    00095 #define QZ_PERIOD       0x2F
    00096 #define QZ_SLASH        0x2C
    00097 #if 1        /* Panther now defines right side keys */
    00098 #define QZ_RSHIFT       0x3C
    00099 #endif
    00100 #define QZ_UP           0x7E
    00101 #define QZ_KP1          0x53
    00102 #define QZ_KP2          0x54
    00103 #define QZ_KP3          0x55
    00104 #define QZ_KP_ENTER     0x4C
    00105 #define QZ_LCTRL        0x3B
    00106 #define QZ_LALT         0x3A
    00107 #define QZ_LMETA        0x37
    00108 #define QZ_SPACE        0x31
    00109 #if 1        /* Panther now defines right side keys */
    00110 #define QZ_RMETA        0x36
    00111 #define QZ_RALT         0x3D
    00112 #define QZ_RCTRL        0x3E
    00113 #endif
    00114 #define QZ_LEFT         0x7B
    00115 #define QZ_DOWN         0x7D
    00116 #define QZ_RIGHT        0x7C
    00117 #define QZ_KP0          0x52
    00118 #define QZ_KP_PERIOD    0x41
    00119
    00120 /* Wierd, these keys are on my iBook under MacOS X */
    00121 #define QZ_IBOOK_ENTER  0x34
    00122 #define QZ_IBOOK_LEFT   0x3B
    00123 #define QZ_IBOOK_RIGHT  0x3C
    00124 #define QZ_IBOOK_DOWN   0x3D
    00125 #define QZ_IBOOK_UP     0x3E
    00126
    00127 #endif