[win32] clear keycode map before init eglview.

This commit is contained in:
James Chen 2013-09-17 22:37:16 +08:00
parent 7d94878173
commit aaf4a6a81b
1 changed files with 1 additions and 0 deletions

View File

@ -376,6 +376,7 @@ EGLView::EGLView()
{
CCASSERT(nullptr == s_pEglView, "EGLView is singleton, Should be inited only one time\n");
s_pEglView = this;
g_keyCodeMap.clear();
for (auto& item : g_keyCodeStructArray)
{
g_keyCodeMap.insert(std::make_pair(item.glfwKeyCode, item.keyCode));