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 / Wrong scan codes for keys 0 to 9

Author
Message
dooz
18
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 4th Feb 2019 21:40
Hi,

I recently upgraded to Mohave on my MacBook Pro, and to the latest AGK.

I'm not sure if either have caused it, but scan codes for keys 0 to 9 are up above 230 range rather than the ASCII values of 48 onwards.

Has something changed, or is there a bug?

Thx
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 4th Feb 2019 21:46
the values should be
KEY_0 48
KEY_1 49
KEY_2 50
KEY_3 51
KEY_4 52
KEY_5 53
KEY_6 54
KEY_7 55
KEY_8 56
KEY_9 57

but perhaps numlock is upsetting this


if not it may be a bug with AppGameKit on MacBook pro
fubar
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 4th Feb 2019 21:48
oh yes that would be it blink

KEY_TOP_0 263
KEY_TOP_1 264
KEY_TOP_2 265
KEY_TOP_3 266
KEY_TOP_4 267
KEY_TOP_5 268
KEY_TOP_6 269
KEY_TOP_7 270
KEY_TOP_8 271
KEY_TOP_9 272
fubar
dooz
18
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 4th Feb 2019 22:43
Thanks folks, I will check this out

Login to post a reply

Server time is: 2024-04-25 09:18:13
Your offset time is: 2024-04-25 09:18:13