Permalink
Browse files

fixed typo for win32 keypad testing ability

  • Loading branch information...
1 parent 1d255e6 commit 72ca168eb13ebc50fb64f0960b5ec5ab3f218682 @moadib moadib committed Sep 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cocos2dx/platform/win32/CCEGLView_win32.cpp
View
2 cocos2dx/platform/win32/CCEGLView_win32.cpp
@@ -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);

0 comments on commit 72ca168

Please sign in to comment.