Reading Text from the User

This how to article shows you how to read a text from the user.

Reading text from the user can be done by calling the following routines available in the SGSDK_Input. We will be using the following routines in this guide.
 * StartReadingText
 * IsReadingText
 * TextReadAsASCII

The general process is as follows:
 * 1) In your game loop call StartReadingText to begin reading text from the user. Swingame will render a cursor for you, and process the keyboard input. This call specifies the color of the text, the maximum number of characters, and the x, y location to display the cursor at.
 * 2) IsReadingText tells you if the user is still entering text. When this returns false the text has been read from the user. They complete text entry by pressing enter or escape.
 * 3) You can get the text that the user entered by calling TextReadAsASCII

Languages
The following shows the code used to read some text from the user using the different languages supported by SwinGame.