Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: monkey0506 on Wed 27/10/2004 02:50:29

Title: = - [ and ] keys
Post by: monkey0506 on Wed 27/10/2004 02:50:29
The keys '=' '-' '[' and ']' are not listed in the help file. Are they just not supported? Because by using a ASCII table in the C++ book I'm using to learn C++ I found the keys:

'=' = 61
'-' = 45
'[' = 91
']' = 93

So are these keys just not "officially supported", but still usable, like arrays? Because I tried using them, and the keys work with on_key_press, so I just don't understand why they aren't in the list. Sorry if this is the wrong thread...
Title: Re: = - [ and ] keys
Post by: Hellomoto on Wed 27/10/2004 03:14:55
Heres the list as I know it:

Deleted as it was the wrong list and it was kinda long. If I can find the right one, I might post it again. Sorry

Title: Re: = - [ and ] keys
Post by: Gilbert on Wed 27/10/2004 03:22:40
The list is in no way complete, it just listed some of the more common keycodes.
If you really want to use the other keys, you can just check them yourself.
But beware that keyboard layouts may differ in different countries, so you should avoid using some of the "rare" keys as these keys may not be present in some of the layouts or are handled differently. ( [ and  ] and so common that I think they're okay though, even I myself used them in my game).

JohnnyC, that's the ASCII table for characters, not the keyboard keycodes, furthermore ASCII #>127 may not be standardized and may differ in places. Well AGS can't display those characters in a string anyway (unless you're using TTF AND a translation file).
Title: Re: = - [ and ] keys
Post by: TerranRich on Thu 28/10/2004 19:50:16
If they dont work JohnnyC, then consider using other keys instead. I see that you're probably using them for speed change and volume, perhaps? perhaps the F__ keys or some other punctuation keys?
Title: Re: = - [ and ] keys
Post by: monkey0506 on Wed 03/11/2004 03:28:21
Ok... thanks for the explanation. That makes sense. BTW, those keys DO work... And I'm the one that was using them...