fixed typo for win32 keypad testing ability

This commit is contained in:
moadib 2011-09-22 10:27:10 +04:00
parent 5537ba7e9e
commit 0ad5ec3557
1 changed files with 1 additions and 1 deletions

View File

@ -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);