★ TouchArcade needs your help. Click here to support us on Patreon.

Looking for keyboard tutorial

06-22-2011, 06:45 AM
Joined: Apr 2011
Location: Kyoto, Japan
Posts: 281
Looking for keyboard tutorial

Hi there
I am looking to add keyboard functionality to a OpenGLES game. My engine uses my own library for fonts and buttons and stuff, but I want to use the built in keyboard for inputting the player's name.
I have seen this done several times before, such as in TinyWings.
Does anyone know where to find a good tutorial on this. I had a look around but couldn't find anything appropriate.

Game source code for PC, Mac, Linux and iOS here.
06-22-2011, 10:45 AM
Joined: Sep 2010
Location: Atlanta
Posts: 184
According to 'Learning iOS Game Programming:...' (which i believe was a source of learning for Tiny Wings developer http://www.71squared.com/2011/02/tin...readers-games/)) it seems like they simply use a UITextField where they want text input. This seems like it would be the easiest route to go.

Since text input isn't going to occur during gameplay and usually happens on a static screen on a menu or whatever, i don't think you have to worry too much about mixing UIKit and OpenGL ES (which I try to avoid at all costs).

My quick search couldn't find anything on displaying the keyboard by itself.