summaryrefslogtreecommitdiff
path: root/src/doom/hu_stuff.c
diff options
context:
space:
mode:
authorSimon Howard2008-10-10 23:44:34 +0000
committerSimon Howard2008-10-10 23:44:34 +0000
commit32565063e7dd9a0e18e496a31bc46ddfe65eee4d (patch)
treefca9b565d2e22d7b488c521349bac793f43486fb /src/doom/hu_stuff.c
parentea4e1fcf59d9478e20a4cec471ef6d34bb37eadb (diff)
downloadchocolate-doom-32565063e7dd9a0e18e496a31bc46ddfe65eee4d.tar.gz
chocolate-doom-32565063e7dd9a0e18e496a31bc46ddfe65eee4d.tar.bz2
chocolate-doom-32565063e7dd9a0e18e496a31bc46ddfe65eee4d.zip
Move shiftxform table to i_video.c; make 'data2' for key events
consistently be the properly translated version of the key pressed. Subversion-branch: /branches/raven-branch Subversion-revision: 1352
Diffstat (limited to 'src/doom/hu_stuff.c')
-rw-r--r--src/doom/hu_stuff.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/doom/hu_stuff.c b/src/doom/hu_stuff.c
index d31b8ce8..7cd06bd5 100644
--- a/src/doom/hu_stuff.c
+++ b/src/doom/hu_stuff.c
@@ -287,49 +287,6 @@ char *mapnamest[] = // TNT WAD map names.
THUSTR_32
};
-static const char shiftxform[] =
-{
-
- 0,
- 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,
- ' ', '!', '"', '#', '$', '%', '&',
- '"', // shift-'
- '(', ')', '*', '+',
- '<', // shift-,
- '_', // shift--
- '>', // shift-.
- '?', // shift-/
- ')', // shift-0
- '!', // shift-1
- '@', // shift-2
- '#', // shift-3
- '$', // shift-4
- '%', // shift-5
- '^', // shift-6
- '&', // shift-7
- '*', // shift-8
- '(', // shift-9
- ':',
- ':', // shift-;
- '<',
- '+', // shift-=
- '>', '?', '@',
- 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N',
- 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
- '[', // shift-[
- '!', // shift-backslash - OH MY GOD DOES WATCOM SUCK
- ']', // shift-]
- '"', '_',
- '\'', // shift-`
- 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N',
- 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
- '{', '|', '}', '~', 127
-};
-
-
void HU_Init(void)
{
@@ -669,14 +626,6 @@ boolean HU_Responder(event_t *ev)
}
else
{
- if (vanilla_keyboard_mapping)
- {
- if (shiftdown || (c >= 'a' && c <= 'z'))
- {
- c = shiftxform[c];
- }
- }
-
eatkey = HUlib_keyInIText(&w_chat, c);
if (eatkey)
{