- Added a default keyboard layout for launching the game. It's fixed crash when a game running with the extend unicode keyboard (cyrillic, for example).

This commit is contained in:
Andrey Syrokomsky 2013-12-03 15:19:38 +02:00
parent 65099897f4
commit e18fbcfb89
5 changed files with 41 additions and 2 deletions

View file

@ -458,8 +458,12 @@ bool ActionMap::createEventDescriptor(const char* pEventString, EventDescriptor*
}
// Now we need to map the key string to the proper KEY code from event.h
//
AssertFatal(dStrlen(pObjectString) != 0, "Error, no key was specified!");
AssertFatal(
dStrlen( pObjectString ) > 0,
"Error, no key was specified!\n"
"Review file 'scripts/client/config.cs' and remove symbols"
" which is not latin. Or delete this file."
);
if (dStrlen(pObjectString) == 1)
{