1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
|
/************************************************************************************
AstroMenace (Hardcore 3D space shooter with spaceship upgrade possibilities)
Copyright © 2006-2013 Michael Kurinnoy, Viewizard
AstroMenace is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
AstroMenace is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with AstroMenace. If not, see <http://www.gnu.org/licenses/>.
Web Site: http://www.viewizard.com/
Project: http://sourceforge.net/projects/openastromenace/
E-mail: viewizard@viewizard.com
*************************************************************************************/
#include "../System.h"
// название кнопок
const char * vw_VirtualCodeNameEN(int Num)
{
switch (Num)
{
case SDLK_1: return "1";
case SDLK_2: return "2";
case SDLK_3: return "3";
case SDLK_4: return "4";
case SDLK_5: return "5";
case SDLK_6: return "6";
case SDLK_7: return "7";
case SDLK_8: return "8";
case SDLK_9: return "9";
case SDLK_0: return "0";
case SDLK_MINUS: return "Minus";
case SDLK_EQUALS: return "Equals";
case SDLK_BACKSPACE: return "BackSpace";
case SDLK_TAB: return "Tab";
case SDLK_q: return "Q";
case SDLK_w: return "W";
case SDLK_e: return "E";
case SDLK_r: return "R";
case SDLK_t: return "T";
case SDLK_y: return "Y";
case SDLK_u: return "U";
case SDLK_i: return "I";
case SDLK_o: return "O";
case SDLK_p: return "P";
case SDLK_LEFTBRACKET: return "[";
case SDLK_RIGHTBRACKET: return "]";
case SDLK_RETURN: return "Enter";
case SDLK_LCTRL: return "LeftCtrl";
case SDLK_a: return "A";
case SDLK_s: return "S";
case SDLK_d: return "D";
case SDLK_f: return "F";
case SDLK_g: return "G";
case SDLK_h: return "H";
case SDLK_j: return "J";
case SDLK_k: return "K";
case SDLK_l: return "L";
case SDLK_SEMICOLON: return "Semicolon";
case SDLK_QUOTE: return "Quote";
case SDLK_QUOTEDBL: return "Quotedbl";
case SDLK_BACKQUOTE: return "BackQuote";
case SDLK_LSHIFT: return "LeftShift";
case SDLK_BACKSLASH: return "BackSlash";
case SDLK_z: return "Z";
case SDLK_x: return "X";
case SDLK_c: return "C";
case SDLK_v: return "V";
case SDLK_b: return "B";
case SDLK_n: return "N";
case SDLK_m: return "M";
case SDLK_COMMA: return "Comma";
case SDLK_PERIOD: return "Period";
case SDLK_SLASH: return "Slash";
case SDLK_RSHIFT: return "RightShift";
case SDLK_ASTERISK: return "Asterisk";
case SDLK_LALT: return "LeftAlt";
case SDLK_SPACE: return "Space";
// case SDLK_CAPSLOCK: return "CapsLock";
// case SDLK_NUMLOCK: return "NumLock";
// case SDLK_SCROLLOCK: return "Scroll";
case SDLK_KP7: return "NumPad 7";
case SDLK_KP8: return "NumPad 8";
case SDLK_KP9: return "NumPad 9";
case SDLK_KP_MINUS: return "Minus";
case SDLK_KP_MULTIPLY: return "Multiply";
case SDLK_KP4: return "NumPad 4";
case SDLK_KP5: return "NumPad 5";
case SDLK_KP6: return "NumPad 6";
case SDLK_KP_PLUS: return "Plus";
case SDLK_KP1: return "NumPad 1";
case SDLK_KP2: return "NumPad 2";
case SDLK_KP3: return "NumPad 3";
case SDLK_KP0: return "NumPad 0";
case SDLK_KP_PERIOD: return "Period";
case SDLK_KP_ENTER: return "Enter";
case SDLK_RCTRL: return "RightCtrl";
case SDLK_KP_DIVIDE: return "Divide";
case SDLK_RALT: return "RightAlt";
case SDLK_PAUSE: return "Pause";
case SDLK_HOME: return "Home";
case SDLK_UP: return "Up";
case SDLK_PAGEUP: return "PgUp";
case SDLK_LEFT: return "Left";
case SDLK_RIGHT: return "Right";
case SDLK_END: return "End";
case SDLK_DOWN: return "Down";
case SDLK_PAGEDOWN: return "PgDn";
case SDLK_INSERT: return "Insert";
case SDLK_DELETE: return "Delete";
case SDLK_LSUPER: return "LeftWin";
case SDLK_RSUPER: return "RightWin";
// забой... чтобы не показывать, пока ищем
case 0: return "?";
}
return 0;
}
|