Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Sam. on Mon 24/11/2003 17:23:41

Title: keys equal to...
Post by: Sam. on Mon 24/11/2003 17:23:41
in my game i am using an Indy foa like gui. i used a template i downloaded. i want to change some of the keys around whuich i have done. all i want now is my menu to be opened up by pressing esccape. at the moment it is opened up by pressing f5. what is the numebr equal to esc? at the mo i have:

 if (IsGamePaused() == 5) keycode=0;  // game paused, so don't react to keypresses
 if (keycode==359) Display("Adventure Game Studio v2 run-time engine[[Copyright (c) 1999-2003 Chris Jones[[SCUMM template by Proskrito :)");// F1
 if (keycode==99) GUIOn(OPTIONS);   // F5 - OPTIONS
 if (keycode==366) RestartGame();  // F8 - RESTART
 if (keycode==434) SaveScreenShot("scrnshot.bmp");  // F12
 if (keycode==19)  Debug(0,0);  // Ctrl-S, give all inventory
 if (keycode==22)  Debug(1,0);  // Ctrl-V, version
 if (keycode==1)   Debug(2,0);  // Ctrl-A, show walkable areas
 if (keycode==24)  Debug(3,0);  // Ctrl-X, teleport to room

i want to change the one "f5 -  options" is this possible? if so waht is esc number equivalent?
Title: Re:keys equal to...
Post by: Scorpiorus on Mon 24/11/2003 17:27:01
There is an ASCII code table in the AGS manual (manual -> Reference -> ASCII code table) ;)

escape is 27 btw

~Cheers
Title: Re:keys equal to...
Post by: Pumaman on Mon 24/11/2003 17:27:22
Please see the ASCII Code Table section in the manual.

ESC is 27.