HI,
I’m having problems making a an example of TextInputTest.
I made two classes.
~~KeyboardNotificationLayer
~~CreateUserScene (the scene that implements the protocol)
The keyboard must be shown when I click on the texinput, but I’m getting this log:
Cocos2d: ++++++++++++++++++++++++++++++++++++++++++++ Cocos2d: KeyboardNotificationLayer:clickedAt(-47.000000,-7.000000) Cocos2d: KeyboardNotificationLayer:TrackNode at(origin:48.500000,225.500000, size:223.000000,29.000000) Cocos2d: CreateUserScene:CCTextFieldTTF detachWithIME Cocos2d: ----------------------------------
It seems like the “getRect” function its not working property.
Changing this line of code the keyboard works, but cannot be detached.
this->onClickTrackNode(CCRect::CCRectContainsPoint(rect, point));
to
this->onClickTrackNode(true);
What I’m doing wrong?
Thank’s
Note: I cannot attach multiples files neither on chrome neither on safari. (Mac os X)
KeyboardNotificationLayer.cpp.zip (1.4 KB)