Welcome to the Creatures Wiki! Log in and join the community.
Difference between revisions of "Keycodes"
Jump to navigation
Jump to search
(Created page) |
(Keycodes aren't ASCII, it's just all Windows key codes) |
||
Line 3: | Line 3: | ||
For example, in the [[Creatures Evolution Engine]], event numbers 73 (Raw Key Down) and 74 (Raw Key Up) are passed a keycode in [[_P1_]]. | For example, in the [[Creatures Evolution Engine]], event numbers 73 (Raw Key Down) and 74 (Raw Key Up) are passed a keycode in [[_P1_]]. | ||
− | Keycodes | + | Keycodes map to [https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes Windows Virtual-Key Codes]. If a script needs text, it should use event 79 (Raw Translated Char) instead. |
Revision as of 16:07, 9 May 2020
In the Creatures games, keycodes are integers used in scripts that represent which keyboard keys are pressed.
For example, in the Creatures Evolution Engine, event numbers 73 (Raw Key Down) and 74 (Raw Key Up) are passed a keycode in _P1_.
Keycodes map to Windows Virtual-Key Codes. If a script needs text, it should use event 79 (Raw Translated Char) instead.