QTfrontend/sdlkeys.cpp
changeset 14867 8bba7492558d
parent 14851 058e204908a6
child 14868 349a87011080
equal deleted inserted replaced
14864:0c231b5184c5 14867:8bba7492558d
    20 
    20 
    21 #include <QtGlobal>
    21 #include <QtGlobal>
    22 
    22 
    23 char sdlkeys[1024][2][128] =
    23 char sdlkeys[1024][2][128] =
    24 {
    24 {
       
    25     // Mouse
    25     {"mousel", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Left button")},
    26     {"mousel", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Left button")},
    26     {"mousem", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Middle button")},
    27     {"mousem", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Middle button")},
    27     {"mouser", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Right button")},
    28     {"mouser", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Right button")},
    28     {"mousex1", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: X1 button ")},
    29     {"mousex1", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: X1 button ")},
    29     {"mousex2", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: X2 button")},
    30     {"mousex2", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: X2 button")},
    30     {"wheelup", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel up")},
    31     {"wheelup", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel up")},
    31     {"wheeldown", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel down")},
    32     {"wheeldown", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel down")},
       
    33 
       
    34     // Keyboard
    32     {"backspace", QT_TRANSLATE_NOOP("binds (keys)", "Backspace")},
    35     {"backspace", QT_TRANSLATE_NOOP("binds (keys)", "Backspace")},
    33     {"tab", QT_TRANSLATE_NOOP("binds (keys)", "Tab")},
    36     {"tab", QT_TRANSLATE_NOOP("binds (keys)", "Tab")},
    34     {"clear", QT_TRANSLATE_NOOP("binds (keys)", "Clear")},
    37     {"clear", QT_TRANSLATE_NOOP("binds (keys)", "Clear")},
    35     {"return", QT_TRANSLATE_NOOP("binds (keys)", "Return")},
    38     {"return", QT_TRANSLATE_NOOP("binds (keys)", "Return")},
    36     {"pause", QT_TRANSLATE_NOOP("binds (keys)", "Pause")},
    39     {"pause", QT_TRANSLATE_NOOP("binds (keys)", "Pause")},
   137     {"right_gui", QT_TRANSLATE_NOOP("binds (keys)", "Right GUI")},
   140     {"right_gui", QT_TRANSLATE_NOOP("binds (keys)", "Right GUI")},
   138     //: Windows key / Command key / Meta key /Super key (left)
   141     //: Windows key / Command key / Meta key /Super key (left)
   139     {"left_gui", QT_TRANSLATE_NOOP("binds (keys)", "Left GUI")}
   142     {"left_gui", QT_TRANSLATE_NOOP("binds (keys)", "Left GUI")}
   140 };
   143 };
   141 
   144 
       
   145 // helper list for sdlkeys. true for keyboard keys, false for other
       
   146 bool sdlkeys_iskeyboard[1024];
       
   147 
   142 // button name definitions for Microsoft's XBox360 controller
   148 // button name definitions for Microsoft's XBox360 controller
   143 // don't modify button order!
   149 // don't modify button order!
   144 char xb360buttons[10][128] =
   150 char xb360buttons[10][128] =
   145 {
   151 {
   146     QT_TRANSLATE_NOOP("binds (keys)", "A button"),
   152     QT_TRANSLATE_NOOP("binds (keys)", "A button"),