porting textfield from cocos2dx