-
Notifications
You must be signed in to change notification settings - Fork 3
Key Helper
lnx00 edited this page Mar 14, 2023
·
2 revisions
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.
-
.new(key)Creates a new KeyHelper instance with the given key number.
-
: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.