Nope heres the code, remove the if(dbUpKey()) branch that encapsulates the assign commands and watch it slowly eat up your ram.
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbDisableEscapeKey ( );
dbRandomize ( dbTimer ( ) );
dbSetImageColorKey ( 255, 0, 255 );
dbDrawSpritesFirst();
dbInk(dbRGB(255, 255, 255), dbRGB(255, 0, 255));
char* testing1 =0;
char* testing2 =0;
char* testing3 =0;
bool once = true;
while ( LoopGDK ( ) )
{
if(dbUpKey())
{
if(once)
{
testing1 = dbInKey();
testing2 = dbInKey();
testing3 = dbInKey();
once = false;
}
}
dbText(10, 10, dbStr((int)testing1));
dbText(10, 30, dbStr((int)testing2));
dbText(10, 50, dbStr((int)testing3));
dbText(100, 10, testing1);
dbText(100, 30, testing2);
dbText(100, 50, testing3);
// here we check if the escape key has been pressed, when it has
// we will break out of the loop
if ( dbEscapeKey ( ) )
break;
// here we make a call to update the contents of the screen
dbSync ( );
dbCLS(dbRGB(255, 148, 100));
}
return;
}
sucks but you gots to delete everytime before the dbInKey() or its a memleak. I wonder what Other kinda stuff I can find ^_^ .
Taco Justice