Merge pull request #540 from signmotion/default-keyboard-layout

Added a default keyboard layout for launching the game.
This commit is contained in:
LuisAntonRebollo 2014-03-29 14:20:30 +01:00
commit 54fa2bcdab
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)
{