Page 1 of 1

iPhone keyboard

PostPosted: Jul 23, 2009 @ 6:46pm
by EarthWind
I'm trying to figure out how to get the generic iPhone keyboard to come up over top of my game so my users can enter their names.

Any quick samples on how to accomplish this?

I saw a post on this forum, but it seemed to be objective-c and I'm trying to do everything using c++ and edgelib.

Thanks

PostPosted: Jul 27, 2009 @ 1:08pm
by edge
Hi EarthWind,

Apple API's can only be called in objective c code. However, you can create wrapper classes and functions to get this to work from your EDGELIB application.

To create the wrapper you need a header file (containing the interface) and an .mm source file (containing objective-c code). The interface can contain a c++ class or simple c-style functions (for example, a function called GetBatteryLevel). The implementation in the .mm file calls objective-c code. Finally, let your EDGELIB/c++ application include the header file and call the wrapper class or functions.