mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-14 01:06:48 +00:00
d847a4d9e0
This also deletes display list support - MC 1.14 now requires VBOs to be supported in some capacity.
10 lines
313 B
Plaintext
10 lines
313 B
Plaintext
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 http://www.minecraftwiki.net/wiki/Key_codes, or the source code, for a complete reference.
|