Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   What are key codes based on? (https://forums.graalonline.com/forums/showthread.php?t=134260113)

Crow 08-08-2010 04:02 PM

What are key codes based on?
 
I've tried to find out what the key codes used in GScript are based on; without luck. Is there an easy way to translate the key codes to a readable key name? keyname(int) won't do, that's for Graal's default stuff only.

Edit: Found out that it matches Flash's ActionScript key codes pretty much, which I found a resource for. This is helpful, but I'd still like to know if there's a better way or how things work behind the scenes.

DrakilorP2P 08-08-2010 06:27 PM

Seems to be mostly ASCII values with 256 or'd into the number if shift is down and the same with 1024 if Alt is down. I don't know much more than that.

Crow 08-08-2010 06:36 PM

Thought about that as well, but that doesn't seem to be entirely correct, because it's off for several keys for me.


All times are GMT +2. The time now is 01:29 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.