Welcome to the Creatures Wiki! Log in and join the community.

Difference between revisions of "Keycodes"

From Creatures Wiki
Jump to navigation Jump to search
(Keycodes aren't ASCII, it's just all Windows key codes)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
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.
 
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.
 +
 +
==See also==
 +
*[[Keyboard Shortcuts]]
 +
*[[KEYD]]
 +
*[https://doringo.blogspot.com/2019/01/keyd-keycode-table.html List of keycodes recognized by the engine]
 +
 +
[[Category:Internals]]

Latest revision as of 19:59, 4 December 2023

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.

See also[edit]