Keyboard ASCII codes [Solved]

Started by Pancho, Mon 12/07/2004 22:15:37

Previous topic - Next topic

Pancho

It may sound a bit lame, but where I can get the ASCII codes or whatever the AGS need for using the keyboard???

Mr Jake

did you look in the manual under 'ASCII codes'

Pancho


Proskrito

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)

SMF spam blocked by CleanTalk