Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / GetRawLastKey what does it return?

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Jun 2013 18:34 Edited at: 22nd Jun 2013 18:35
I ask because it doesn't seem to match the standard ascii chart. I get 65 for A, regardless of upper or lowercase. An apostrophe is key 222. However, spacebar and return key are what I'd expect, 32 and 13 respectively.




Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 22nd Jun 2013 19:25
That is because it doesn't return standard ascii.

It returns key codes which are defined on this page.

You can tell if a shift key is being pressed, but not at the same time as checking another key.

You can check for both (I think) using GetRawKeyPressed(16) (for shift) and then GetRawKeyPressed(65) (for A).

I haven't tried this, it is just a possibility.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 22nd Jun 2013 19:47
Yes, take the first if the count is = 0 or take next if >.
And you will be able to check all at same time.

Long life to Steve!
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 23rd Jun 2013 05:39
There is a guide in the manual which gives you the scancode value for each key. I use it ALL the time. Just look in help, guides, scroll to the misc section at the bottom, and there is a list of scancodes. I leave it open in the browser, and refer to it when I can't remember the specific code for a key I need.

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 23rd Jun 2013 06:19
Or he can use the link to the page I posted in my first response.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2024-11-24 15:59:45
Your offset time is: 2024-11-24 15:59:45