or
_getch()
or as previously posted at :
http://forum.thegamecreators.com/?m=forum_view&t=122973&b=22
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbBackdropOn();
while ( LoopGDK ( ) )
{
// code from http://forum.thegamecreators.com/?m=forum_view&t=122973&b=22
char *inBuff; // a pointer to track the location of the resulting string
inBuff = dbInput(); // get onscreen input and save location of the string
dbPrint (inBuff); // print the result to the screen (optional?)
delete [] inBuff; // recover the memory used by the string
dbSync ( );
}
return;
}
remarks
- you first need to hit enter before any text displays.