Hi all,
How do I get Swype text input? If I'm using Swype on my Android device (Galaxy s2 - ICS), the text input box remains empty, but when hitting individual keys, it works fine.
Here is a quick example:
// Includes, namespace and prototypes
#include "template.h"
using namespace AGK;
app App;
char* szText = NULL;
// Begin app, called once at the start
void app::Begin( void )
{
agk::SetClearColor ( 0, 55, 0 );
agk::StartTextInput ( );
}
// Main loop, called every frame
void app::Loop ( void )
{
if ( agk::GetTextInputCompleted ( ) )
szText = agk::GetTextInput ( );
if ( szText )
{
agk::Print ( szText );
}
agk::Sync ( );
}
// Called when the app ends
void app::End ( void )
{
}
Thank you!
p.s. I love AppGameKit already! Great work TGC! can't wait for 3d