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
(Created page)
 
(One intermediate revision by one other user not shown)
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 from 0–31 map to [https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes Windows Virtual-Key Codes]. Keycodes from 32–127 map to typical [https://en.wikipedia.org/wiki/ASCII ASCII] characters, and keycodes from 128–255 map to [https://en.wikipedia.org/wiki/Windows-1252 Windows-1252] characters for non-English languages.
+
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]]
 +
 
 +
[[Category:Internals]]

Revision as of 23:03, 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.

See also