Jump to content

Where is the AnyKey?...Hit


tjheldna
 Share

Recommended Posts

Maybe try something like this:

 

Not sure if this is the exact code or what exactly GetChar() returns if nothing is hit cuz I'm at work and can't check. But it should give you enough information to figure it out.

 

bool AnyKeyHit(){

int key = NULL;
key = LE::GetChar();

LE::FlushKeys();

if(key != NULL)
 return true;
else
 return false
}

STS - Scarlet Thread Studios

AKA: Engineer Ken

 

Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...