src/events/scancodes_xfree86.h
author Edgar Simo <bobbens@gmail.com>
Mon, 28 Jul 2008 10:26:21 +0000
branchgsoc2008_force_feedback
changeset 2549 491e43f427ee
parent 2305 fbe8ff44c519
child 2825 620a91b6d263
permissions -rw-r--r--
Put haptic defines in SDL_configs, patch by Alam.
slouken@2305
     1
/*
slouken@2305
     2
    SDL - Simple DirectMedia Layer
slouken@2305
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@2305
     4
slouken@2305
     5
    This library is free software; you can redistribute it and/or
slouken@2305
     6
    modify it under the terms of the GNU Lesser General Public
slouken@2305
     7
    License as published by the Free Software Foundation; either
slouken@2305
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@2305
     9
slouken@2305
    10
    This library is distributed in the hope that it will be useful,
slouken@2305
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@2305
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@2305
    13
    Lesser General Public License for more details.
slouken@2305
    14
slouken@2305
    15
    You should have received a copy of the GNU Lesser General Public
slouken@2305
    16
    License along with this library; if not, write to the Free Software
slouken@2305
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@2305
    18
slouken@2305
    19
    Sam Lantinga
slouken@2305
    20
    slouken@libsdl.org
slouken@2305
    21
*/
slouken@2305
    22
#include "../../include/SDL_scancode.h"
slouken@2305
    23
slouken@2305
    24
/* XFree86 key code to SDL scancode mapping table
slouken@2305
    25
   Sources:
slouken@2305
    26
   - atKeyNames.h from XFree86 source code
slouken@2305
    27
*/
slouken@2305
    28
/* *INDENT-OFF* */
slouken@2305
    29
static SDL_scancode xfree86_scancode_table[] = {
slouken@2305
    30
    /*  0 */    SDL_SCANCODE_UNKNOWN,
slouken@2305
    31
    /*  1 */    SDL_SCANCODE_ESCAPE,
slouken@2305
    32
    /*  2 */    SDL_SCANCODE_1,
slouken@2305
    33
    /*  3 */    SDL_SCANCODE_2,
slouken@2305
    34
    /*  4 */    SDL_SCANCODE_3,
slouken@2305
    35
    /*  5 */    SDL_SCANCODE_4,
slouken@2305
    36
    /*  6 */    SDL_SCANCODE_5,
slouken@2305
    37
    /*  7 */    SDL_SCANCODE_6,
slouken@2305
    38
    /*  8 */    SDL_SCANCODE_7,
slouken@2305
    39
    /*  9 */    SDL_SCANCODE_8,
slouken@2305
    40
    /*  10 */   SDL_SCANCODE_9,
slouken@2305
    41
    /*  11 */   SDL_SCANCODE_0,
slouken@2305
    42
    /*  12 */   SDL_SCANCODE_MINUS,
slouken@2305
    43
    /*  13 */   SDL_SCANCODE_EQUALS,
slouken@2305
    44
    /*  14 */   SDL_SCANCODE_BACKSPACE,
slouken@2305
    45
    /*  15 */   SDL_SCANCODE_TAB,
slouken@2305
    46
    /*  16 */   SDL_SCANCODE_Q,
slouken@2305
    47
    /*  17 */   SDL_SCANCODE_W,
slouken@2305
    48
    /*  18 */   SDL_SCANCODE_E,
slouken@2305
    49
    /*  19 */   SDL_SCANCODE_R,
slouken@2305
    50
    /*  20 */   SDL_SCANCODE_T,
slouken@2305
    51
    /*  21 */   SDL_SCANCODE_Y,
slouken@2305
    52
    /*  22 */   SDL_SCANCODE_U,
slouken@2305
    53
    /*  23 */   SDL_SCANCODE_I,
slouken@2305
    54
    /*  24 */   SDL_SCANCODE_O,
slouken@2305
    55
    /*  25 */   SDL_SCANCODE_P,
slouken@2305
    56
    /*  26 */   SDL_SCANCODE_LEFTBRACKET,
slouken@2305
    57
    /*  27 */   SDL_SCANCODE_RIGHTBRACKET,
slouken@2305
    58
    /*  28 */   SDL_SCANCODE_RETURN,
slouken@2305
    59
    /*  29 */   SDL_SCANCODE_LCTRL,
slouken@2305
    60
    /*  30 */   SDL_SCANCODE_A,
slouken@2305
    61
    /*  31 */   SDL_SCANCODE_S,
slouken@2305
    62
    /*  32 */   SDL_SCANCODE_D,
slouken@2305
    63
    /*  33 */   SDL_SCANCODE_F,
slouken@2305
    64
    /*  34 */   SDL_SCANCODE_G,
slouken@2305
    65
    /*  35 */   SDL_SCANCODE_H,
slouken@2305
    66
    /*  36 */   SDL_SCANCODE_J,
slouken@2305
    67
    /*  37 */   SDL_SCANCODE_K,
slouken@2305
    68
    /*  38 */   SDL_SCANCODE_L,
slouken@2305
    69
    /*  39 */   SDL_SCANCODE_SEMICOLON,
slouken@2305
    70
    /*  40 */   SDL_SCANCODE_APOSTROPHE,
slouken@2305
    71
    /*  41 */   SDL_SCANCODE_GRAVE,
slouken@2305
    72
    /*  42 */   SDL_SCANCODE_LSHIFT,
slouken@2305
    73
    /*  43 */   SDL_SCANCODE_BACKSLASH,
slouken@2305
    74
    /*  44 */   SDL_SCANCODE_Z,
slouken@2305
    75
    /*  45 */   SDL_SCANCODE_X,
slouken@2305
    76
    /*  46 */   SDL_SCANCODE_C,
slouken@2305
    77
    /*  47 */   SDL_SCANCODE_V,
slouken@2305
    78
    /*  48 */   SDL_SCANCODE_B,
slouken@2305
    79
    /*  49 */   SDL_SCANCODE_N,
slouken@2305
    80
    /*  50 */   SDL_SCANCODE_M,
slouken@2305
    81
    /*  51 */   SDL_SCANCODE_COMMA,
slouken@2305
    82
    /*  52 */   SDL_SCANCODE_PERIOD,
slouken@2305
    83
    /*  53 */   SDL_SCANCODE_SLASH,
slouken@2305
    84
    /*  54 */   SDL_SCANCODE_RSHIFT,
slouken@2305
    85
    /*  55 */   SDL_SCANCODE_KP_MULTIPLY,
slouken@2305
    86
    /*  56 */   SDL_SCANCODE_LALT,
slouken@2305
    87
    /*  57 */   SDL_SCANCODE_SPACE,
slouken@2305
    88
    /*  58 */   SDL_SCANCODE_CAPSLOCK,
slouken@2305
    89
    /*  59 */   SDL_SCANCODE_F1,
slouken@2305
    90
    /*  60 */   SDL_SCANCODE_F2,
slouken@2305
    91
    /*  61 */   SDL_SCANCODE_F3,
slouken@2305
    92
    /*  62 */   SDL_SCANCODE_F4,
slouken@2305
    93
    /*  63 */   SDL_SCANCODE_F5,
slouken@2305
    94
    /*  64 */   SDL_SCANCODE_F6,
slouken@2305
    95
    /*  65 */   SDL_SCANCODE_F7,
slouken@2305
    96
    /*  66 */   SDL_SCANCODE_F8,
slouken@2305
    97
    /*  67 */   SDL_SCANCODE_F9,
slouken@2305
    98
    /*  68 */   SDL_SCANCODE_F10,
slouken@2305
    99
    /*  69 */   SDL_SCANCODE_NUMLOCKCLEAR,
slouken@2305
   100
    /*  70 */   SDL_SCANCODE_SCROLLLOCK,
slouken@2305
   101
    /*  71 */   SDL_SCANCODE_KP_7,
slouken@2305
   102
    /*  72 */   SDL_SCANCODE_KP_8,
slouken@2305
   103
    /*  73 */   SDL_SCANCODE_KP_9,
slouken@2305
   104
    /*  74 */   SDL_SCANCODE_KP_MINUS,
slouken@2305
   105
    /*  75 */   SDL_SCANCODE_KP_4,
slouken@2305
   106
    /*  76 */   SDL_SCANCODE_KP_5,
slouken@2305
   107
    /*  77 */   SDL_SCANCODE_KP_6,
slouken@2305
   108
    /*  78 */   SDL_SCANCODE_KP_PLUS,
slouken@2305
   109
    /*  79 */   SDL_SCANCODE_KP_1,
slouken@2305
   110
    /*  80 */   SDL_SCANCODE_KP_2,
slouken@2305
   111
    /*  81 */   SDL_SCANCODE_KP_3,
slouken@2305
   112
    /*  82 */   SDL_SCANCODE_KP_0,
slouken@2305
   113
    /*  83 */   SDL_SCANCODE_KP_PERIOD,
slouken@2305
   114
    /*  84 */   SDL_SCANCODE_SYSREQ,
slouken@2305
   115
    /*  85 */   SDL_SCANCODE_MODE,
slouken@2305
   116
    /*  86 */   SDL_SCANCODE_NONUSBACKSLASH,
slouken@2305
   117
    /*  87 */   SDL_SCANCODE_F11,
slouken@2305
   118
    /*  88 */   SDL_SCANCODE_F12,
slouken@2305
   119
    /*  89 */   SDL_SCANCODE_HOME,
slouken@2305
   120
    /*  90 */   SDL_SCANCODE_UP,
slouken@2305
   121
    /*  91 */   SDL_SCANCODE_PAGEUP,
slouken@2305
   122
    /*  92 */   SDL_SCANCODE_LEFT,
slouken@2305
   123
    /*  93 */   SDL_SCANCODE_BRIGHTNESSDOWN, /* on PowerBook G4 / KEY_Begin */
slouken@2305
   124
    /*  94 */   SDL_SCANCODE_RIGHT,
slouken@2305
   125
    /*  95 */   SDL_SCANCODE_END,
slouken@2305
   126
    /*  96 */   SDL_SCANCODE_DOWN,
slouken@2305
   127
    /*  97 */   SDL_SCANCODE_PAGEDOWN,
slouken@2305
   128
    /*  98 */   SDL_SCANCODE_INSERT,
slouken@2305
   129
    /*  99 */   SDL_SCANCODE_DELETE,
slouken@2305
   130
    /*  100 */  SDL_SCANCODE_KP_ENTER,
slouken@2305
   131
    /*  101 */  SDL_SCANCODE_RCTRL,
slouken@2305
   132
    /*  102 */  SDL_SCANCODE_PAUSE,
slouken@2305
   133
    /*  103 */  SDL_SCANCODE_PRINTSCREEN,
slouken@2305
   134
    /*  104 */  SDL_SCANCODE_KP_DIVIDE,
slouken@2305
   135
    /*  105 */  SDL_SCANCODE_RALT,
slouken@2305
   136
    /*  106 */  SDL_SCANCODE_UNKNOWN, /* BREAK */
slouken@2305
   137
    /*  107 */  SDL_SCANCODE_LGUI,
slouken@2305
   138
    /*  108 */  SDL_SCANCODE_RGUI,
slouken@2305
   139
    /*  109 */  SDL_SCANCODE_APPLICATION,
slouken@2305
   140
    /*  110 */  SDL_SCANCODE_F13,
slouken@2305
   141
    /*  111 */  SDL_SCANCODE_F14,
slouken@2305
   142
    /*  112 */  SDL_SCANCODE_F15,
slouken@2305
   143
    /*  113 */  SDL_SCANCODE_F16,
slouken@2305
   144
    /*  114 */  SDL_SCANCODE_F17,
slouken@2305
   145
    /*  115 */	SDL_SCANCODE_UNKNOWN,
slouken@2305
   146
    /*	116 */  SDL_SCANCODE_UNKNOWN, /* is translated to XK_ISO_Level3_Shift by my X server, but I have no keyboard that generates this code, so I don't know what the correct SDL_SCANCODE_* for it is */
slouken@2305
   147
    /*  117 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   148
    /*  118 */  SDL_SCANCODE_KP_EQUALS,
slouken@2305
   149
    /*  119 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   150
    /*  120 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   151
    /*  121 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   152
    /*  122 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   153
    /*  123 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   154
    /*  124 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   155
    /*  125 */  SDL_SCANCODE_INTERNATIONAL3, /* Yen */
slouken@2305
   156
    /*  126 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   157
    /*  127 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   158
    /*  128 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   159
    /*  129 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   160
    /*  130 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   161
    /*  131 */  SDL_SCANCODE_UNKNOWN,
slouken@2305
   162
    /*  132 */  SDL_SCANCODE_POWER,
slouken@2305
   163
    /*  133 */  SDL_SCANCODE_MUTE,
slouken@2305
   164
    /*  134 */  SDL_SCANCODE_VOLUMEDOWN,
slouken@2305
   165
    /*  135 */  SDL_SCANCODE_VOLUMEUP,
slouken@2305
   166
    /*  136 */  SDL_SCANCODE_HELP,
slouken@2305
   167
    /*  137 */  SDL_SCANCODE_STOP,
slouken@2305
   168
    /*  138 */  SDL_SCANCODE_AGAIN,
slouken@2305
   169
    /*  139 */  SDL_SCANCODE_UNKNOWN, /* PROPS */
slouken@2305
   170
    /*  140 */  SDL_SCANCODE_UNDO,
slouken@2305
   171
    /*  141 */  SDL_SCANCODE_UNKNOWN, /* FRONT */
slouken@2305
   172
    /*  142 */  SDL_SCANCODE_COPY,
slouken@2305
   173
    /*  143 */  SDL_SCANCODE_UNKNOWN, /* OPEN */
slouken@2305
   174
    /*  144 */  SDL_SCANCODE_PASTE,
slouken@2305
   175
    /*  145 */  SDL_SCANCODE_FIND,
slouken@2305
   176
    /*  146 */  SDL_SCANCODE_CUT,
slouken@2305
   177
};
slouken@2305
   178
/* *INDENT-ON* */