This site is no longer active and is available for archival purposes only. Registration and login is disabled.

iPhone keyboard


iPhone keyboard

Postby EarthWind » Jul 23, 2009 @ 6:46pm

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
EarthWind
pm Member
 
Posts: 17
Joined: Jul 5, 2009 @ 2:10pm


Postby edge » Jul 27, 2009 @ 1:08pm

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.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron