mirror of https://github.com/axmolengine/axmol.git
TextFieldTTFDefaultTest: Fixed can't take input from the keyboard.
This commit is contained in:
parent
793f7cd1e7
commit
5f4fd20b06
|
@ -107,10 +107,10 @@ void KeyboardNotificationLayer::onTouchEnded(Touch *touch, Event *event)
|
||||||
|
|
||||||
// decide the trackNode is clicked.
|
// decide the trackNode is clicked.
|
||||||
Rect rect;
|
Rect rect;
|
||||||
auto point = convertTouchToNodeSpaceAR(touch);
|
auto point = _trackNode->convertTouchToNodeSpace(touch);
|
||||||
CCLOG("KeyboardNotificationLayer:clickedAt(%f,%f)", point.x, point.y);
|
CCLOG("KeyboardNotificationLayer:clickedAt(%f,%f)", point.x, point.y);
|
||||||
|
|
||||||
rect = getRect(_trackNode);
|
rect.size = _trackNode->getContentSize();
|
||||||
CCLOG("KeyboardNotificationLayer:TrackNode at(origin:%f,%f, size:%f,%f)",
|
CCLOG("KeyboardNotificationLayer:TrackNode at(origin:%f,%f, size:%f,%f)",
|
||||||
rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
|
rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue