mirror of https://github.com/axmolengine/axmol.git
fixed typo for win32 keypad testing ability
This commit is contained in:
parent
5537ba7e9e
commit
0ad5ec3557
|
@ -312,7 +312,7 @@ LRESULT CCEGLView::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
|
|||
}
|
||||
break;
|
||||
case WM_KEYDOWN:
|
||||
if (wParam == VK_F1 || wParam == VK_F1)
|
||||
if (wParam == VK_F1 || wParam == VK_F2)
|
||||
{
|
||||
if (GetKeyState(VK_LSHIFT) < 0 || GetKeyState(VK_RSHIFT) < 0 || GetKeyState(VK_SHIFT) < 0)
|
||||
CCKeypadDispatcher::sharedDispatcher()->dispatchKeypadMSG(wParam == VK_F1 ? kTypeBackClicked : kTypeMenuClicked);
|
||||
|
|
Loading…
Reference in New Issue