Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 12/07/2004 22:15:37

Title: Keyboard ASCII codes [Solved]
Post by: on Mon 12/07/2004 22:15:37
It may sound a bit lame, but where I can get the ASCII codes or whatever the AGS need for using the keyboard???
Title: Re: Keyboard ASCII codes
Post by: Mr Jake on Mon 12/07/2004 22:22:38
did you look in the manual under 'ASCII codes'
Title: Re: Keyboard ASCII codes
Post by: on Mon 12/07/2004 22:32:08
Thanks!!!!
Title: Re: Keyboard ASCII codes [Solved]
Post by: Proskrito on Mon 12/07/2004 22:48:25
Also, if you want the ascii codes of characters or numbers or so, you could write the character inside single quotes, (always in uppercase in case of 'letters'(?) ), to check in the on_key_press or IsKeyPressed functions, like:
if ( keycode == 'Y' ) ....
this way is more readable i think, and you dont have to look up the number, but it only works with those type of keys. (whichever you can write in the editor might work, im not sure though)