- fix text entry so unicode characters work properly

This commit is contained in:
Mark Vejvoda
2012-09-21 03:41:10 +00:00
parent c50469acd7
commit 684c35e25a
4 changed files with 116 additions and 7 deletions

View File

@@ -19,9 +19,11 @@
#include <cassert>
#include "data_types.h"
#include "vec.h"
#include <vector>
#include "leak_dumper.h"
using std::map;
using std::vector;
using std::string;
using Shared::Graphics::Vec2i;
@@ -213,6 +215,7 @@ SDLKey extractKeyPressed(SDL_KeyboardEvent input);
bool isAllowedInputTextKey(SDLKey key);
wchar_t extractKeyPressedUnicode(SDL_KeyboardEvent input);
vector<int> extractKeyPressedUnicodeLength(string text);
bool isAllowedInputTextKey(wchar_t &key);
}}//end namespace