Since EDuke32 can't display properly Chinese and Russian fonts, it will try to use English key names when possible.

git-svn-id: https://svn.eduke32.com/eduke32@1009 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hnt_ts 2008-08-23 18:59:49 +00:00
parent b7760a5674
commit f75fd4cb31

View file

@ -1398,6 +1398,11 @@ static void GetKeyNames(void)
CharToOem(key.tszName, tbuf);
strncpy((char *)keynames[i], tbuf, sizeof(keynames[i])-1);
tbuf[0] = 0;
GetKeyNameText((i>128?(i+128):i)<<16, tbuf, sizeof(keynames[i])-1);
// initprintf("%d %15s %15s\n",i,keynames[i],tbuf);
if(*tbuf)strncpy((char *)keynames[i], tbuf, sizeof(keynames[i])-1);
}
}