KEYBOARD_SUPPORT renamed to CC_KEYBOARD_SUPPORT

This commit is contained in:
Rene Klacan 2013-07-03 15:51:24 +02:00
parent 92c382be04
commit 294f9f34f7
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ THE SOFTWARE.
#include "keypad_dispatcher/CCKeypadDispatcher.h"
#include "support/CCPointExtension.h"
#include "CCApplication.h"
#ifdef KEYBOARD_SUPPORT
#ifdef CC_KEYBOARD_SUPPORT
#include "keyboard_dispatcher/CCKeyboardDispatcher.h"
#endif
@ -452,7 +452,7 @@ LRESULT EGLView::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
}
break;
case WM_KEYDOWN:
#ifdef KEYBOARD_SUPPORT
#ifdef CC_KEYBOARD_SUPPORT
Director::sharedDirector()->getKeyboardDispatcher()->dispatchKeyboardEvent(wParam, true);
#endif
if (wParam == VK_F1 || wParam == VK_F2)
@ -472,7 +472,7 @@ LRESULT EGLView::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
}
break;
case WM_KEYUP:
#ifdef KEYBOARD_SUPPORT
#ifdef CC_KEYBOARD_SUPPORT
Director::sharedDirector()->getKeyboardDispatcher()->dispatchKeyboardEvent(wParam, false);
#endif
if ( _lpfnAccelerometerKeyHook!=NULL )