# cocoa_keys.h

Go to the documentation of this file.

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