Key Helper - lnx00/Lmaobox-Library GitHub Wiki
lnxLib.Utils.KeyHelper
Allows you to easily retrieve key states.
Please note that there might be bugs when mixing :Pressed()
and :Released()
calls. So either only use one of them per KeyHelper instance or create multiple instances.
Functions
.new(key)
Creates a new KeyHelper instance with the given key number.
Methods
:Down()
Returns if the key is currently being held.:Pressed()
Returns if the key has just been pressed.:Released()
Returns if the key has just been released.