Right Alt?

Started by monkey0506, Wed 28/02/2007 10:32:47

Previous topic - Next topic

monkey0506

I've just been mucking around in AGS, and it appears that, contrary to what the AGS manual's ASCII table says, there are different keycodes assigned for the left and right Alt keys. My left Alt key is registering as 407, as the manual says, however, my right Alt key is registering as keycode 420.

If anyone could confirm this (a simple "if (IsKeyPressed(420)) Display("echo");" would be enough), it would be greatly appreciated. Because otherwise...well...I was going to say I think I've just gone insane, but that would be a bit silly saying that at this point now wouldn't it? ;)

Khris


Gilbert

Same here.

Considered a typo in the manual IMO.

monkey0506

#3
Well it never did seem quite right to me that there would be left and right variations for Ctrl and shift but not for Alt...I've just never been arsed to find out! ;D

Hopefully if I can debug this bloody thing (sometime when I'm more awake and not trying to convert my DVDs to play on my Zune sucking up all my CPU) it will actually get some use. But as with every half-baked scheme I plan and make idle mention of around the forums...I'm not going to tell you what it is. 8)

Oh yes, thanks for confirming that right alt has its own keycode you two.

It does make me wonder about what goes on in the unseen keycode regions though...For example, I've managed to figure out that keycodes 301-326 are mapped out to Alt+A through Alt+Z, and if I haven't just gone completely bloody loony, they even send out calls to on_key_press!

But if left Alt is 407...and Right Alt is 420...what's inbetween? 32? FTW? ;)

Pumaman

Well, technically the right Alt is actually "Alt Gr" so it's a different key. So in fact, the manual simply doesn't list its keycode :P

monkey0506

Hmm...Alt Gr? I think we can all agree that the manual just reading "407     Alt" for Alt while it says "405     Left ctrl" and "406     Right ctrl" for Ctrl is at least a bit misleading.

It's fine if it maps out to a different keycode...just...the current entry could probably use some modification to reflect that Alt and Alt Gr map to different keys. ;)

SMF spam blocked by CleanTalk