diff --git a/Quake/keys.c b/Quake/keys.c index c89cbd4b..bb13a551 100644 --- a/Quake/keys.c +++ b/Quake/keys.c @@ -32,7 +32,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. char key_lines[CMDLINES][MAXCMDLINE]; int key_linepos; -int shift_down=false; int key_lastpress; int key_insert; //johnfitz -- insert key toggle (for editing) double key_blinktime; //johnfitz -- fudge cursor blinking to make it easier to spot in certain cases @@ -45,7 +44,6 @@ keydest_t key_dest; int key_count; // incremented every key event char *keybindings[256]; -int keyshift[256]; // key to map to if shift held down in console int key_repeats[256]; // if > 1, it is autorepeating qboolean consolekeys[256]; // if true, can't be rebound while in console qboolean menubound[256]; // if true, can't be rebound while in menu @@ -856,32 +854,6 @@ void Key_Init (void) consolekeys['`'] = false; consolekeys['~'] = false; - for (i = 0; i < 256; i++) - keyshift[i] = i; - for (i = 'a' ; i <= 'z'; i++) - keyshift[i] = i - 'a' + 'A'; - keyshift['1'] = '!'; - keyshift['2'] = '@'; - keyshift['3'] = '#'; - keyshift['4'] = '$'; - keyshift['5'] = '%'; - keyshift['6'] = '^'; - keyshift['7'] = '&'; - keyshift['8'] = '*'; - keyshift['9'] = '('; - keyshift['0'] = ')'; - keyshift['-'] = '_'; - keyshift['='] = '+'; - keyshift[','] = '<'; - keyshift['.'] = '>'; - keyshift['/'] = '?'; - keyshift[';'] = ':'; - keyshift['\''] = '"'; - keyshift['['] = '{'; - keyshift[']'] = '}'; - keyshift['`'] = '~'; - keyshift['\\'] = '|'; - menubound[K_ESCAPE] = true; for (i = 0; i < 12; i++) menubound[K_F1+i] = true; @@ -934,9 +906,6 @@ void Key_Event (int key, qboolean down) Con_Printf ("%s is unbound, hit F4 to set.\n", Key_KeynumToString(key)); } - if (key == K_SHIFT) - shift_down = down; - // handle escape specialy, so the user can never unbind it if (key == K_ESCAPE) { @@ -973,15 +942,6 @@ void Key_Event (int key, qboolean down) sprintf (cmd, "-%s %i\n", kb+1, key); Cbuf_AddText (cmd); } - if (keyshift[key] != key) - { - kb = keybindings[keyshift[key]]; - if (kb && kb[0] == '+') - { - sprintf (cmd, "-%s %i\n", kb+1, key); - Cbuf_AddText (cmd); - } - } return; } @@ -1017,9 +977,6 @@ void Key_Event (int key, qboolean down) if (!down) return; // other systems only care about key down events - if (shift_down) - key = keyshift[key]; - switch (key_dest) { case key_message: