How to wait for key and know what key it was?

Discuss any general programming issues here
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to wait for key and know what key it was?

Post by airsoftsoftwair »

Code: Select all

- New: Calling WaitKeyDown() with the special value "ANY" will return a string now that contains the key
  that got pressed; also calling IsKeyDown() with the special value "ANY" will return the key that is
  pressed but in the second return value because the first is reserved for the up and down flag; note that
  if multiple keys are down it's undefined which key will be returned
Post Reply