Create custom keyboard in cocos2d-x

264 Views Asked by At

I need to create custom keyboard with some sort of button animation, is it possible to do with cocos2d-x? I know that there are exists two text fields: RichText and TextField. TextField connected to native mobile device keyboard. Is it possible to send to TextField same events as native keyboard do? And if yes, than how to edit inserted text?

Thanks a lot in advance!

1

There are 1 best solutions below

1
Davinder Singh On

Yes,you can easily set text of your TextField with:-

void setText(const char* text);     

Function of "TextField" class of cocos2d-x. Just explore "UITextField" class of cocos2d-x