Debounce: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 October 2023

  • curprev 16:0916:09, 6 October 2023CrosRoad95 talk contribs 1,202 bytes +1,202 Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function is removing unwanted input noise from buttons, switches or other user input. see: https://www.techtarget.com/whatis/definition/debouncing ==Syntax== <syntaxhighlight lang="lua"> void debounce( number timeout, function callback, ...arguments) </syntaxhighlight> ==Code== <section name="Shared" class="both" show="true"> <syntaxhighlight lang="lua"> local debounces = {} function debounce(timeou..."