sc3-rom-dump/rom/help/keys.txt

10 lines
308 B
Plaintext
Raw Normal View History

2024-01-15 10:36:50 +01:00
The keys API contains constants for all the key codes that can be returned by the "key" event:
Example usage:
local sEvent, nKey = os.pullEvent()
if sEvent == "key" and nKey == keys.enter then
-- Do something
end
See https://www.minecraft.wiki/w/Key_codes, or the source code, for a complete reference.