Skip to content

Key Helper

lnx00 edited this page Mar 14, 2023 · 2 revisions

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.
Clone this wiki locally