mirror of https://github.com/axmolengine/axmol.git
[win32] clear keycode map before init eglview.
This commit is contained in:
parent
7d94878173
commit
aaf4a6a81b
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue